Perpendicular Line Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the slope and y-intercept of the line, and the point the perpendicular line must pass through.
Result
y-intercept of the perpendicular line
Slope of the perpendicular line, −1 ÷ m
- Where the lines cross: x
- Where the lines cross: y
- Distance from the point to the given line
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Slope m of the given line y = mx + b (not 0): enter a number.
- y-intercept b of the given line: enter a number.
- Point: x₀: enter a number.
- Point: y₀: enter a number.
- Read the result: y-intercept of the perpendicular line; the panel also shows Slope of the perpendicular line, −1 ÷ m, Where the lines cross: x, Where the lines cross: y and Distance from the point to the given line.
How this calculator works
Two lines with slopes m and m′ are perpendicular when m × m′ = −1, so m′ = −1 ÷ m. The perpendicular through (x₀, y₀) is y = m′x + (y₀ − m′x₀).
The lines cross where mx + b = m′x + b′, at x = (b′ − b) ÷ (m − m′). The distance from (x₀, y₀) to y = mx + b is |mx₀ − y₀ + b| ÷ √(m² + 1).
If the given line is horizontal (m = 0), the perpendicular is the vertical line x = x₀, which has no slope; the slope and intercept then show a dash.
The formula
| Symbol | Meaning |
|---|---|
| Slope m of the given line y = mx + b (not 0) | |
| Point: x₀ | |
| Point: y₀ | |
| Slope of the perpendicular line, −1 ÷ m | |
| y-intercept of the perpendicular line |
Worked example
| Slope m of the given line y = mx + b (not 0) | 2 |
|---|---|
| y-intercept b of the given line | 1 |
| Point: x₀ | 3 |
| Point: y₀ | 4 |
| Slope of the perpendicular line, −1 ÷ m | -0.5 |
|---|---|
| Where the lines cross: x | 1.8 |
| Where the lines cross: y | 4.6 |
| Distance from the point to the given line | 1.3416 |
y-intercept of the perpendicular line 5.5
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What line through (3, 4) is perpendicular to y = 2x + 1?
y = −0.5x + 5.5. It meets the first line at (1.8, 4.6), and the point is about 1.3416 units from that line.
What is the perpendicular slope of −3/4?
4/3 ≈ 1.3333, the negative reciprocal.