Parallel and Perpendicular Line Calculator — Equations Through a Point

Enter a reference line and a point. Get the unique parallel and perpendicular lines through that point in exact standard, point-slope, and graphing forms, with substituted steps and a graph.

Reference line and required point

Try an example:

Reference line: y = mx + b
Point both new lines pass through

Accepted: integers, decimals, scientific notation, fractions such as -3/4, and mixed numbers such as 2 1/3. Maximum magnitude: 10100.

Enter a reference line and a point, or choose an example.

Privacy: calculations stay in your browser. Inputs are not uploaded or stored. A shared link contains only the values visible in its URL.

Coordinate graph

Your browser does not support canvas. The exact equations are shown beside the graph.
No graph yet. Enter values or choose an example.

Advertisement

Parallel and Perpendicular Line Formulas

Writing the source line as Ax + By = C gives one method that works for every orientation, including vertical and horizontal lines. Let the required point be P=(x₀,y₀).

Parallel through P

Keep the same normal vector (A,B) and change the constant so the new point satisfies the equation:

Ax + By = Ax₀ + By₀

Perpendicular through P

Rotate the normal vector by 90°. One valid perpendicular normal is (B,−A):

Bx − Ay = Bx₀ − Ay₀

Slope shortcut

For a finite, nonzero source slope m, the new slopes are:

mparallel=m,   mperpendicular=−1/m

A horizontal source line has slope 0, so its perpendicular is vertical rather than having a finite negative-reciprocal slope. A vertical source has undefined slope, and its perpendicular is horizontal. Standard form handles both without division.

How to use the calculator

  1. Choose how the reference line is given: slope-intercept, standard form, or two points.
  2. Enter the line values and the point (x₀,y₀) that both new lines must pass through.
  3. Select Calculate lines or press Enter.
  4. Read the exact standard equations, alternative graphing forms, and substituted steps.
  5. Copy or download the solution, save the graph, or share the input link if useful.

Worked Examples

Reference y = 2x + 1, point (3, −2)

The parallel line keeps slope 2: y+2=2(x−3), so y=2x−8. The perpendicular slope is −1/2: y+2=−1/2(x−3), or x+2y=−1.

Vertical reference x = 4, point (−2, 5)

The parallel line is vertical through the new x-coordinate, x=−2. Its perpendicular is horizontal through the new y-coordinate, y=5.

Reference 3x − 2y = 6, point (4, 1)

The parallel line is 3x−2y=10. A rotated normal is (−2,−3), giving the equivalent reduced perpendicular equation 2x+3y=11.

Understanding the Results

Standard form

Ax+By=C represents every line, including vertical lines. The calculator clears denominators and reduces common integer factors.

Point-slope form

y−y₀=m(x−x₀) makes the required point and slope visible. Vertical lines are shown as x=x₀.

Coincident case

If the required point lies on the reference line, the parallel result is the reference line itself. This is reported explicitly rather than called a distinct parallel.

Exact arithmetic

Fraction inputs remain rational throughout the line calculations. Decimal approximations are added only where they help interpretation.

Common mistakes

  • Negating a slope without taking its reciprocal; the perpendicular to m=2 has slope −1/2, not −2.
  • Changing the slope for the parallel line instead of keeping it unchanged.
  • Reusing the source intercept even though the new line must pass through a different point.
  • Trying to use −1/m when m=0; the perpendicular is vertical.
  • Entering A=0 and B=0 in standard form, which does not define a line.

Parallel and Perpendicular Line Calculator FAQs

How do I find a parallel line through a point?

For a source Ax+By=C and point (x₀,y₀), keep A and B and use Ax+By=Ax₀+By₀.

How do I find a perpendicular line through a point?

Rotate the source normal (A,B) to (B,−A). The line through (x₀,y₀) is Bx−Ay=Bx₀−Ay₀.

What slope is perpendicular to a line with slope m?

When m is finite and nonzero, the perpendicular slope is −1/m. Horizontal and vertical lines are the special pair.

What happens if the point is already on the source line?

The parallel result coincides with the source line. The perpendicular result remains unique.

Can the calculator handle vertical lines?

Yes. Use standard form such as 1x+0y=4, or use two points with the same x-coordinate. The outputs automatically switch to x=k or y=k where appropriate.

Can I use fractions, negative numbers, or scientific notation?

Yes. Examples include -3/4, -2 1/3, 1.25, and 4e-3. Exact rational equations are preserved.

Methodology and Review

Calculation method: inputs are converted to reduced rational numbers. Source, parallel, and perpendicular equations are calculated with integer arithmetic, denominators are cleared, common factors are removed, and signs are normalized. Only the requested decimal values and graph use floating-point arithmetic.

Formula reference: the same-slope and negative-reciprocal rules, point-slope construction, and horizontal/vertical cases follow OpenStax College Algebra 2e, “Linear Functions”. The calculator extends these rules to standard-form vector equations so no slope division is needed.

Verification completed July 30, 2026. Checks cover general, standard-form, two-point, fractional, horizontal, vertical, coincident, empty, malformed, degenerate, and large-value cases.

Explore more tools