Both lines through your point — including the awkward two.
Through a point, parallel or perpendicular
Including the two cases the rule does not cover.
original slope 2
y = −1/2x + 1.5
The perpendicular slope is the negative reciprocal, and the two multiply to −1.
Both lines through your point
The parallel and perpendicular lines through the given point, in slope-intercept and standard form
Line
Slope
Slope-intercept
Standard
Parallel
2
y = 2x − 1
2x − y = 1
Perpendicular
−1/2
y = −1/2x + 1.5
x + 2y = 3
Parallel slope
2
the same as the original
Perpendicular slope
−1/2
the negative reciprocal
Product of slopes
−1
always −1 when both exist
Both pass through
(1, 1)
your point
Parallel lines have the SAME slope and a different intercept. Same slope and the same intercept is not a parallel line, it is the same line.
Perpendicular slopes multiply to −1: 2 × −1/2 = −1. The perpendicular slope is the negative reciprocal — flip the fraction and change the sign, and both steps are needed.
The two special cases are worth remembering precisely because the product rule fails on them: horizontal and vertical lines are perpendicular to each other, and 0 × undefined is not −1.
Horizontal and vertical are handled explicitly, because 0 × undefined is not −1 and the product rule genuinely fails there.
What this tool shows
Parallel keeps the slope; perpendicular flips it and changes the sign. The rule that they multiply to −1 covers almost everything — and fails exactly where a horizontal line meets a vertical one, because 0 × undefined is not −1.
The parallel line through a given point
The perpendicular line through the same point
Both in slope-intercept and standard form
The product of the two slopes
The horizontal and vertical cases
Why parallel and identical are different
Both lines at once In two forms each The rule’s exceptions Exact slopes
The horizontal and vertical cases are handled, not assumed away.
Updated 7 September 2026 · Works in any browser, no installation
Parallel keeps the slope; perpendicular takes the negative reciprocal. A line of slope 2 has parallels of slope 2 and perpendiculars of slope −1/2. Flip the fraction, change the sign, and substitute your point — both steps are needed, and dropping the sign is the usual error.
At a glance
Formula shown
Parallel lines share a slope. Perpendicular slopes satisfy m\u2081 \u00d7 m\u2082 = \u22121, so m\u2082 = \u22121/m\u2081 \u2014 except when one line is horizontal and the other vertical, where one slope does not exist and the product rule has nothing to say.
Scenario support
Finding the line through a point parallel to a given one; constructing a perpendicular for a shortest-distance problem; checking whether two lines in an exercise are perpendicular.
Educational estimate
Planning support from the values you enter — not professional advice.
Parallel means same slope
Two lines never meet exactly when they climb at the same rate. That is the whole condition: m₁ = m₂.
It is why slope is the useful quantity here rather than the angle. Equal angles would work too, but slopes compare as numbers and angles need a trigonometric function first.
Two vertical lines are also parallel, and neither has a slope. The slope test cannot see that case at all — it has to be handled separately, which is a recurring theme on this page.
Perpendicular means negative reciprocal
Two steps, and both are needed. Flip the fraction, then change the sign.
The perpendicular to 2/3 is −3/2. Flipping alone gives 3/2, which is a line at a different angle entirely; negating alone gives −2/3, which is its mirror image and also not perpendicular.
Why the product is −1: rotating a line by 90° turns a rise of a and a run of b into a rise of b and a run of −a. The new slope is −b/a, and multiplying by a/b gives −1. The rule is a rotation written in coordinates.
A useful consequence: slope 1 and slope −1 are perpendicular, which is why the diagonals of a square are at right angles.
Where the rule fails
A horizontal line has slope 0. A vertical line has no slope. They are perpendicular to each other — obviously, they are the axes — and the product rule cannot say so.
0 × undefined is not −1. It is not anything. The rule assumes both slopes exist, and in this one pair they do not.
Applied blindly it produces nonsense. −1/0 in floating point is −Infinity, which then flows into y = mx + c and gives NaN a few steps later. This page branches on the case instead and reports the perpendicular to a horizontal line as vertical, with its x = k equation.
Worth remembering as a pair: the exceptions to the perpendicularity rule are exactly the two lines that are perpendicular most obviously.
Parallel or identical
Same slope and a different intercept: parallel. Same slope and the SAME intercept: the same line.
Whether a line counts as parallel to itself is a convention rather than a fact, and textbooks split on it. Most school geometry says no — parallel lines are distinct and never meet — while some higher treatments say yes, because it makes parallelism an equivalence relation.
This page always produces a line through your point, which is the same line whenever your point already lies on the original. That is the honest output, and it is worth noticing rather than hiding.
In a system of equations the distinction is the whole answer: same slope and different intercept means no solution, same slope and same intercept means infinitely many.
Testing two given lines
Given two equations rather than a slope and a point, get both slopes and compare.
From y = mx + c: the slope is the m, directly.
From Ax + By = C: the slope is −A/B. The minus sign is the step people drop, and dropping it turns a parallel test into a perpendicular one.
Then: equal slopes means parallel, a product of −1 means perpendicular, and neither means they cross at some other angle. B = 0 on either line means that line is vertical, and the special cases apply.
Where it gets used
Shortest distance to a line. Drop a perpendicular from the point to the line and measure it. Constructing that perpendicular is exactly this calculation.
Proving a shape. A rectangle needs adjacent sides perpendicular; a parallelogram needs opposite sides parallel. Both reduce to comparing slopes.
Construction and drawing. Setting out a wall parallel to an existing one, or a partition at right angles to it.
Graphics. A surface normal is perpendicular to a surface, and in two dimensions finding it is the negative reciprocal — which is why reflections and lighting calculations keep meeting this rule.
Sources and methodology
The slope conditions are curriculum standards; these are the references.
Method. The perpendicular slope is the exact negative reciprocal of the original, computed on rationals, and the two degenerate cases are branched on rather than derived: a vertical original gives a horizontal perpendicular of slope 0, and a horizontal original gives a vertical perpendicular with no slope at all. The product of the two slopes is reported only when both exist, so the page never prints a product for a pair the rule does not cover. The suite substitutes the given point into both new lines in standard form on integers. That engine is verified on every change against 67 hand-written assertions, including that the parallel keeps the original slope exactly and that both new lines pass through the given point, checked in whole numbers across three thousand generated cases. The count and the per-case breakdown are published on the formula verification page.
Related calculators
Where this goes next:
SlopeSlope as an exact fraction, with the vertical case reported as undefined rather than as a division by zero — and the angle, gradient percentage and both related slopes alongside it.
Line EquationThe equation of a line in all three standard forms from two points or from a point and a slope, with the intercepts and the vertical case that has no y = mx + c form at all.
DistanceThe distance between two points in the plane or in space, kept exact as a surd wherever the square root does not come out — √50 stays √50, and is also shown as 5√2.
MidpointThe midpoint of a segment, plus the reverse problem nobody else solves: given one endpoint and the midpoint, where is the other endpoint?
TriangleSolve any triangle from three measurements — and when two sides and a non-included angle describe TWO triangles, this one shows both instead of picking one.
VectorMagnitude, unit vector, sum, both products and the projection — with parallelism decided on the cross product, so exactly parallel vectors return exactly 0° and not a millionth of a degree.
To write either line in every standard form, or to start from two points rather than a slope, the Line Equation Calculator covers that.
Educational use disclaimer
This is an educational tool. Slopes are exact for what you enter; the horizontal and vertical cases are handled explicitly rather than through a rule that does not cover them.
Published the parallel and perpendicular page giving both lines through the given point at once, in slope-intercept and standard form, rather than making the reader run the same substitution twice.
The degenerate cases are branched on rather than derived: a horizontal line's perpendicular is vertical, and the product rule cannot say so because one of the two slopes does not exist.
Separates parallel from identical, which is the distinction that decides whether a pair of simultaneous equations has no solution or infinitely many.
Add this calculator to your site
Responsive embed — and private: nothing your visitors type leaves their browser.