Enter a slope and a point to get the perpendicular slope — the negative reciprocal — and the full line equation, verified.

Perpendicular Calculator

Negative reciprocal, full line through your point, and a built-in product check — perpendicular lines without the sign slip.

Free to use Full line equation Product check built in Point included

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for slope of the given line (m).

Slope of the original line y = m x + b. A horizontal line (m = 0) has a vertical perpendicular — see limitations.

Enter a valid value for point x-coordinate (x1).

The perpendicular line passes through this point.

Enter a valid value for point y-coordinate (y1).

The perpendicular line passes through this point.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Perpendicular Calculator tinyexe.comFree online calculators

TinyExe · Perpendicular Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Slope of the given line (m)

—

Point x-coordinate (x1)

—

Point y-coordinate (y1)

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Perpendicular Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      The slope of a perpendicular line is the negative reciprocal of the original slope. If a line has slope 2, a perpendicular line has slope negative one half, because 2 times negative one half equals negative 1. Through the point 1, 3 that perpendicular is the line y equals negative 0.5x plus 3.5.

      • Perpendicular slope = -1/m
      • Two lines are perpendicular when their slopes multiply to -1
      • Horizontal lines have vertical perpendiculars (undefined slope)
      • Exactly one perpendicular passes through a given point

      Slope pairs that are perpendicular (product = -1)

      Reference values for this calculator.

      Given slope mPerpendicular slope -1/mReading
      2-1/2Steep up, gentle down
      -41/4Steep down, gentle up
      1/3-3Gentle up, steep down
      1-1Diagonals at right angles
      -2/55/2Fraction flips and sign changes

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Perpendicular slope mp = -1/m (negative reciprocal); line through (x1, y1): y = mp x + (y1 - mp x1); two non-vertical lines are perpendicular exactly when m x mp = -1

      Ideas enhancement: beyond the negative-reciprocal slope it builds the full equation of the perpendicular line through your point and self-checks the result (m x mp = -1) in the details, turning a one-number answer into a complete, verifiable line.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Perpendicular through a point

      Given slope m = 2, point (1, 3)

      CalculationSteps
      mp = -1/2 = -0.5. b = 3 - (-0.5 x 1) = 3.5. Line: y = -0.5x + 3.5. Check: 2 x -0.5 = -1.Perpendicular slope -0.5, line y = -0.5x + 3.5.

      Result

      Example 2

      Negative original slope

      Given slope m = -4, point (0, 2)

      CalculationSteps
      mp = -1 / -4 = 0.25. The point is the y-intercept itself, so b = 2. Line: y = 0.25x + 2. Check: -4 x 0.25 = -1.Perpendicular slope 0.25, line y = 0.25x + 2.

      Result

      Example 3

      Fractional original slope

      Given slope m = 0.5, point (2, 2)

      CalculationSteps
      mp = -1 / 0.5 = -2. b = 2 - (-2 x 2) = 6. Line: y = -2x + 6. Check: 0.5 x -2 = -1.Perpendicular slope -2, line y = -2x + 6.

      Result

      How to use this calculator

      Step 1

      Find the slope m of the given line (rearrange into y = m x + b first if needed).

      Step 2

      Enter m and the coordinates of the point the perpendicular must pass through.

      Step 3

      Read the perpendicular slope — the negative reciprocal of m.

      Step 4

      Use the full line equation in the details for graphing or further working.

      Step 5

      Sanity-check with the product line in the details: m times the new slope must equal -1.

      In short: Perpendicular lines meet at a right angle (90 degrees); in coordinate geometry their slopes are negative reciprocals of each other.

      Frequently asked questions

      How do you find a perpendicular slope?

      Take the negative reciprocal of the original slope: flip the fraction and change the sign. For m = 2, the perpendicular slope is -1/2. For m = -4, it is 1/4. The two slopes always multiply to -1.

      What is the perpendicular to a horizontal line?

      A vertical line, x = constant, whose slope is undefined — so there is no number to return. The calculator tells you the vertical line through your point instead of inventing a slope. Symmetrically, the perpendicular to a vertical line is horizontal (slope 0).

      How do I get the equation, not just the slope?

      Substitute the perpendicular slope and your point into y = m x + b and solve for b. With slope -0.5 through (1, 3): 3 = -0.5 + b, so b = 3.5 and the line is y = -0.5x + 3.5. This calculator shows that equation in the details.

      Do perpendicular lines have to intersect at my point?

      The perpendicular through a given point is unique: exactly one line passes through that point at right angles to the given line. If you only need any perpendicular, the slope alone suffices and the intercept can be anything.

      Why negative reciprocal and not just reciprocal?

      Rotating a line by 90 degrees swaps its rise and run and reverses one direction, which turns slope r/s into -s/r. The sign change is essential: slopes 2 and 1/2 multiply to +1 and are not perpendicular — they are reflections, not rotations.

      About this calculator

      A perpendicular calculator finds the slope — and here, the complete equation — of a line that crosses a given line at a right angle. In coordinates, perpendicular lines have slopes that are negative reciprocals: flip the fraction, change the sign. Give this tool the original slope and a point, and it returns the perpendicular slope, the line through your point, and a check that the slopes multiply to -1.

      The negative reciprocal rule comes straight from rotation. A line with slope 2 rises 2 for every 1 it runs. Rotate that direction by 90 degrees and the rise and run swap roles with one sign reversed: it now falls 1 for every 2 it runs, a slope of -1/2. In general slope r/s becomes -s/r, and the product m x (-1/m) is always -1 — which is why 'slopes multiply to -1' is a complete test for perpendicularity between two non-vertical lines.

      Textbook questions usually ask for more than the slope: they want the line through a specific point. That adds one substitution: put the new slope and the point into y = mx + b and solve for b. Through (1, 3) with slope -0.5, b = 3 - (-0.5 x 1) = 3.5. Students often stop at the slope and lose the equation marks; this calculator's details always carry the finished line so you can compare both parts.

      Two edge cases deserve honesty. A horizontal line (m = 0) has no finite negative reciprocal — its perpendicular is vertical, with an undefined slope, so the correct answer is the line x = x1 rather than a number; this tool says so instead of dividing by zero. And parallel lines are the mirror-image trap: they keep the same slope rather than the negative reciprocal, so if your two slopes multiply to +1 you have reflected, not rotated.

      Use it for coordinate-geometry homework, for finding the normal line to a curve's tangent (the first step uses exactly this slope), for construction layout where a true right angle matters, or for checking a hand-drawn perpendicular in CAD-style problems.

      How to calculate it yourself

      Step 1

      Write the given line in the form y = m x + b and read off m.

      Step 2

      Flip m into a fraction and change its sign: the perpendicular slope is -1/m.

      Step 3

      Substitute the perpendicular slope and your point (x1, y1) into y = mp x + b.

      Step 4

      Solve for b = y1 - mp x1.

      Step 5

      Write the line y = mp x + b and verify m x mp = -1.

      Real-life examples

      Normal to a tangent in calculus

      A student finds the tangent to a curve at a point has slope 0.5 and now needs the normal line — the perpendicular through that same point (2, 2) — for the next part of the question.

      mp = -1/0.5 = -2, and b = 2 - (-2)(2) = 6, giving the normal line y = -2x + 6. The calculator's product check (0.5 x -2 = -1) confirms the normal is truly perpendicular to the tangent.

      Normal line y = -2x + 6, verified perpendicular.

      Laying out a garden bed

      A gardener has a fence line running with slope -4 across a plan (in grid units) and wants the edge of a rectangular bed to leave the fence at a right angle from the corner at (0, 2).

      The perpendicular slope is -1/-4 = 0.25, so the bed's edge follows y = 0.25x + 2 on the plan — rising gently 1 unit for every 4 along, exactly square to the fence.

      Bed edge direction slope 0.25 from the corner point.

      Ideas & use cases

      • Parallel-or-perpendicular sorting: take a list of slopes and use the product test on each pair — this tool's check line makes the classification mechanical and fast.
      • Normal-line practice: for any tangent slope from a calculus exercise, generate the normal's equation here, then differentiate-check by re-deriving b by hand.
      • Graphical proof: plot the given line and the returned perpendicular for the three worked examples and measure the angle — seeing the 90 degrees once makes the algebra rule stick.

      Limitations & sources

      • Works from a given slope and point for non-vertical, non-horizontal original lines. m = 0 is reported honestly as a vertical perpendicular (undefined slope), and an original vertical line (which has no slope to enter) needs the symmetric answer: any horizontal line, slope 0.

      Sources: OpenStax College Algebra, 'Equations of lines: parallel and perpendicular' — negative reciprocal condition (openstax.org)

      Perpendicular Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results