Skip to main content
math

Perpendicular Line Calculator

Find the equation of a line perpendicular to a given line that passes through a specified point.

Reviewed by Chase FloiedUpdated

This free online perpendicular line calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Slope of the line to be perpendicular to

x coordinate of the point the new line passes through

y coordinate of the point the new line passes through

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Perpendicular Line Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Perpendicular Line Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Perpendicular Line Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Perpendicular Line Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The Perpendicular Line Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Find the equation of a line perpendicular to a given line that passes through a specified point. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About Perpendicular Line Calculator

Perpendicular lines meet at right angles (90 degrees). In coordinate geometry, if a line has slope m, any line perpendicular to it has slope -1/m — the negative reciprocal. This relationship is central to many geometric constructions: finding the shortest distance from a point to a line, constructing altitudes of triangles, creating perpendicular bisectors, and designing orthogonal grids. Perpendicularity appears throughout engineering and design — structural supports meet at right angles for maximum stability, coordinate axes are perpendicular by definition, and the normal to a surface is perpendicular to the tangent plane. In navigation, a perpendicular course represents a 90-degree turn. This calculator takes the slope of an existing line and a point, then produces the equation of the perpendicular line through that point. The mathematical condition m₁ × m₂ = -1 for perpendicular lines is a direct consequence of the dot product of their direction vectors being zero, connecting slope geometry to vector algebra.

The Math Behind It

Two lines with slopes m₁ and m₂ are perpendicular if and only if m₁ × m₂ = -1, which gives m₂ = -1/m₁. This condition comes from the direction vectors: if line 1 has direction (1, m₁) and line 2 has direction (1, m₂), perpendicularity requires their dot product to be zero: 1(1) + m₁m₂ = 0, so m₁m₂ = -1. For a horizontal line (m = 0), the perpendicular is vertical (undefined slope), and vice versa. To find the perpendicular line through point (x₁, y₁), use point-slope form: y - y₁ = (-1/m)(x - x₁), which expands to y = (-1/m)x + (y₁ + x₁/m). The perpendicular bisector of a segment from (x₁, y₁) to (x₂, y₂) passes through the midpoint with slope equal to the negative reciprocal of the segment's slope. This construction is fundamental for finding circumcenters of triangles, Voronoi diagrams, and reflection lines. The foot of the perpendicular from a point P to a line L is the point on L closest to P, and the distance from P to L is the length of this perpendicular segment. In higher dimensions, perpendicularity generalizes to orthogonality via the inner product.

Formula Reference

Perpendicular Slope

m_perp = -1/m

Variables: m = slope of original line; m_perp = slope of perpendicular line

Perpendicular Line Equation

y - y₁ = (-1/m)(x - x₁)

Variables: (x₁, y₁) = point on new line; m = original slope

Worked Examples

Example 1: Perpendicular to y = 2x + 5 through (3, 1)

Find the line perpendicular to y = 2x + 5 that passes through (3, 1).

Step 1:Perpendicular slope = -1/2
Step 2:Using point-slope form: y - 1 = -0.5(x - 3)
Step 3:y = -0.5x + 1.5 + 1 = -0.5x + 2.5
Step 4:y-intercept b = 1 - (-0.5)(3) = 1 + 1.5 = 2.5

The perpendicular line is y = -0.5x + 2.5.

Example 2: Perpendicular to a line with slope -3

Find the line perpendicular to a line with slope -3 passing through (0, 4).

Step 1:Perpendicular slope = -1/(-3) = 1/3
Step 2:b = 4 - (1/3)(0) = 4
Step 3:Equation: y = (1/3)x + 4

The perpendicular line is y = (1/3)x + 4.

Common Mistakes & Tips

  • !Using the same slope (that gives a parallel line, not perpendicular).
  • !Taking the reciprocal without negating it — the perpendicular slope must be the negative reciprocal.
  • !Not handling the case where m = 0 — a line perpendicular to a horizontal line is vertical (undefined slope).
  • !Forgetting that perpendicularity is symmetric: if L₁ ⊥ L₂, then L₂ ⊥ L₁.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What is the perpendicular to a horizontal line?

A horizontal line has slope 0, and -1/0 is undefined. The perpendicular to a horizontal line is a vertical line, written as x = constant. This calculator requires a nonzero slope.

How do I find the perpendicular bisector of a segment?

First find the midpoint of the segment: ((x₁+x₂)/2, (y₁+y₂)/2). Then find the slope of the segment and take the negative reciprocal. Use this calculator with the perpendicular slope and the midpoint.

Can two perpendicular lines both have positive slopes?

No. Since perpendicular slopes multiply to -1, one must be positive and the other negative (unless one is horizontal and the other vertical).