Perpendicular Line Calculator

By: Calculator Grid

Perpendicular Line Calculator

Find the equation of a line that is perpendicular to a given line and passes through a chosen point, then calculate where the two lines intersect.

Given: y = 2x – 2 Through: (3, 5) Angle: 90° Intersection: (3.4, 4.8)

Excel export is ready for the demonstration values.

Line and point inputs

Accepted format: a signed decimal using a period as the decimal separator. Standard comma grouping such as 1,000.5 is accepted; scientific notation and decimal commas are rejected.

Live results

Perpendicular line equation

y = – 0.5x + 6.5

Perpendicular slope (a)

– 0.5

Perpendicular y-intercept (b)

6.5

Intersection point

(3.4, 4.8)

Slope product

– 1

The perpendicular line is y equals negative 0.5 x plus 6.5. The intersection is 3.4, 4.8.

Equation details

Quantity Symbol Value Interpretation
Given line y = mx + r y = 2x – 2 Original line entered above.
Perpendicular slope a = – 1/m – 0.5 Negative reciprocal of the given slope.
Perpendicular intercept b = y₀ – ax₀ 6.5 Places the new line through the selected point.
Intersection (xᵢ, yᵢ) (3.4, 4.8) Point shared by both lines.

The slope product is exactly – 1 for non-horizontal lines. When the given slope is 0, the perpendicular line is vertical, so its slope and y-intercept are undefined.

How to use this perpendicular line calculator

What this calculator does

This calculator starts with a line written in slope-intercept form, y = mx + r, and a point (x₀, y₀). It finds the unique line that passes through that point and meets the given line at a right angle. It also solves the two line equations together to report their exact point of intersection. The result is an algebraic identity based on the values you enter; it does not determine measurement uncertainty, drawing scale, or whether rounded real-world coordinates are sufficiently precise for engineering or surveying work.

When to use it

Use it when writing an equation for a perpendicular bisector or altitude, checking coordinate-geometry homework, constructing a normal line to a straight path, or confirming where two right-angle line equations meet. The negative-reciprocal slope rule follows the standard treatment of perpendicular lines in OpenStax's discussion of linear-function graphs.

How to calculate

  1. The calculator opens with a complete demonstration: m = 2, r = – 2, and the point (3, 5). The results and a validated Excel workbook are available immediately.
  2. Replace the four demonstration values with your own coefficients and coordinates. Results update automatically after each valid edit; no Calculate button is needed.
  3. Read the perpendicular equation first, then use the slope, y-intercept, and intersection cards to inspect the components of the result. The details table repeats the same canonical values and identifies the formula used for each one.
  4. Select Download Excel to export the current inputs, outputs, and verification checks as a real .xlsx workbook. Select Reset to clear the demonstration and all calculated content. Reset may disable Excel export until all four required fields contain valid values again.

Input guide

  • Given line slope (m) is a required signed decimal with no unit. It controls the direction and steepness of the original line. A realistic example is 2. Increasing a positive slope makes the perpendicular slope closer to zero in magnitude because a = – 1/m. Do not enter an angle in degrees or a fraction with a slash; enter its decimal value. A value of 0 is valid and produces a vertical perpendicular line.
  • Given line y-intercept (r) is a required signed decimal in the same coordinate units as y. It is the y-value of the original line when x is 0. The demonstration uses – 2. Changing r shifts the original line vertically and changes the intersection, but it does not change either slope. A common mistake is entering an x-intercept here.
  • Point x-coordinate (x₀) is a required signed decimal in x-coordinate units. The demonstration value is 3. It fixes the horizontal position of the point through which the new line must pass. Changing x₀ usually changes the perpendicular line's intercept and the intersection. Enter the coordinate itself, not a distance from the origin.
  • Point y-coordinate (y₀) is a required signed decimal in y-coordinate units. The demonstration value is 5. It completes the point (x₀, y₀). Raising y₀ shifts the perpendicular line upward while retaining its slope. Keep x and y coordinate units consistent with the original line equation.

Output guide

  • Perpendicular line equation is the primary exact identity. For a nonzero m it is displayed as y = ax + b; for m = 0 it is shown as the vertical line x = x₀.
  • Perpendicular slope (a) is the negative reciprocal of m. Its product with m is – 1 whenever both slopes are finite. If the original line is horizontal, this output correctly reads “undefined” because the new line is vertical.
  • Perpendicular y-intercept (b) is calculated from b = y₀ – ax₀. It is not applicable to a vertical line because a vertical line does not cross the y-axis at one unique y-value unless x = 0.
  • Intersection point is the ordered pair shared by the two lines. It is found by solving the equations simultaneously, the same general idea covered in OpenStax's guide to two-variable linear systems.
  • Slope product is a direct perpendicularity check. It displays – 1 for two finite slopes or “horizontal × vertical” for the special zero-slope case. The summary pills repeat the given equation, selected point, right angle, and intersection; the table columns identify each quantity, symbol, current value, and interpretation.

Worked example

With m = 2, the perpendicular slope is a = – 1/2 = – 0.5. Using the point (3, 5), the new intercept is b = 5 – ( – 0.5 × 3) = 6.5, so the perpendicular equation is y = – 0.5x + 6.5. Solving that equation together with y = 2x – 2 gives x = 3.4 and y = 4.8. These are the exact first-open results shown in the cards, table, and Excel workbook.

How the perpendicular-line formula works

For nonvertical lines, slope measures vertical change divided by horizontal change. Rotating a direction by 90 degrees swaps those changes and reverses one sign, which turns m into its negative reciprocal, – 1/m. The point-slope relationship then fixes the new line's position: y – y₀ = a(x – x₀). Expanding this expression produces the displayed y-intercept. A concise treatment of the same negative-reciprocal rule, including the horizontal-versus-vertical exception, appears in LibreTexts' parallel and perpendicular lines lesson.

Rounded display values are provided to six decimal places, while the internal model and workbook keep full JavaScript numeric precision. Very large values can magnify floating-point limits, so use coordinate scales appropriate to the problem and verify critical applied work with domain-specific software.