Parallel and Perpendicular Line Calculator

Given the line y = 2x + 1 and the point (3, 4), the parallel line through the point is y = 2x − 2 and the perpendicular line is y = −0.5x + 5.5. The two lines meet at (1.8, 4.6), and the point is 1.342 units from the original line.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Are Parallel and Perpendicular Lines?

Two lines in a plane are parallel if they never meet, which happens when they have the same slope. Two lines are perpendicular if they meet at a right angle, which happens when their slopes are negative reciprocals of each other. These two relationships are used constantly in geometry, design and construction.

A common problem is: given a line and a point not on it, find the line through that point that is parallel to the given line, and the one that is perpendicular to it. The perpendicular is especially useful because it gives the shortest route from the point to the line, and so the distance between them.

The Slope Rules

RelationshipSlope conditionExample with m = 2
ParallelSame slope: m₂ = m₁m₂ = 2
PerpendicularNegative reciprocal: m₂ = −1 ÷ m₁m₂ = −0.5
Horizontal ⟂ verticalSlope 0 and undefinedy = 3 and x = 3

Formulas

Parallel through (x₀, y₀): y − y₀ = m (x − x₀) Perpendicular through (x₀, y₀): y − y₀ = (−1 ÷ m)(x − x₀) Distance from the point to y = mx + b: d = |m·x₀ − y₀ + b| ÷ √(m² + 1)
  • m and b are the slope and intercept of the given line.
  • (x₀, y₀) is the point the new lines must pass through.
  • The foot of the perpendicular is the point where the perpendicular meets the given line. It is the closest point on the line to (x₀, y₀).
  • Each new line is written with the point-slope form and then simplified.

Worked Example: Line y = 2x + 1 and Point (3, 4)

  1. Parallel line: same slope 2. y − 4 = 2(x − 3) gives y = 2x − 2.
  2. Perpendicular slope: −1 ÷ 2 = −0.5. y − 4 = −0.5(x − 3) gives y = −0.5x + 5.5.
  3. Foot of the perpendicular: set 2x + 1 = −0.5x + 5.5, so 2.5x = 4.5 and x = 1.8, y = 4.6. The foot is (1.8, 4.6).
  4. Distance: √[(3 − 1.8)² + (4 − 4.6)²] = √(1.44 + 0.36) = √1.8 = 1.3416.
  5. Check with the formula: |2 × 3 − 4 + 1| ÷ √5 = 3 ÷ 2.236 = 1.3416 ✓.

Another Example: y = −2x through (1, 1)

The parallel line is y = −2x + 3. The perpendicular has slope 0.5: y = 0.5x + 0.5, meeting the original at (−0.2, 0.4), a distance of 1.342 away. Notice that the distance happens to match the first example.

A Practical Case: Shortest Path to a Road

A road runs along y = 2x + 1 and a house is at (3, 4). The shortest straight path to the road leaves the house at a right angle and is about 1.34 units long, reaching the road at (1.8, 4.6).

The Perpendicular Bisector

The perpendicular bisector of a segment passes through its midpoint at a right angle. For the segment from (2, 3) to (8, 11), the midpoint is (5, 7) and the slope of the segment is 8 ÷ 6 = 4/3. The bisector therefore has slope −3/4: y − 7 = −0.75(x − 5), or y = −0.75x + 10.75. Every point on this line is equally far from both endpoints.

How to Use This Parallel and Perpendicular Line Calculator

  1. Enter the slope m and the intercept b of the given line, y = mx + b.
  2. Enter the coordinates of the point (x₀, y₀).
  3. Read the equations of the parallel and perpendicular lines through the point, the foot of the perpendicular and the distance from the point to the line.

For a vertical line (undefined slope), the parallel is x = x₀ and the perpendicular is y = y₀.

Where These Calculations Are Used

  • Construction and design: laying out parallel walls, rails and perpendicular cross-members.
  • Surveying and mapping: offset lines and the closest approach to a boundary.
  • Computer graphics: reflections and normals to edges.
  • Engineering: perpendicular distance from a point to a straight member.
  • Statistics: least-squares fitting minimises perpendicular or vertical distances to a line.

What Are the Most Common Mistakes With the Parallel and Perpendicular Line Calculator?

  • Using the reciprocal only. The perpendicular slope is the negative reciprocal: −1 ÷ m.
  • Forgetting the sign. The slope of the perpendicular to m = 2 is −0.5, not +0.5.
  • Dividing by a zero slope. A horizontal line’s perpendicular is vertical.
  • Assuming the distance is along the vertical. The shortest distance is along the perpendicular.
  • Not simplifying the intercept. Use the point to find b after finding the slope.
  • Confusing the point with the intercept. The point (x₀, y₀) is general, not the y-intercept.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

How do I find a line parallel to a given line?

Use the same slope and the given point: y − y₀ = m(x − x₀).

How do I find a perpendicular line?

Use the negative reciprocal slope −1 ÷ m through the point.

What is the foot of the perpendicular?

The point where the perpendicular from a point meets the line. It is the nearest point on the line.

How do I find the distance from a point to a line?

d = |mx₀ − y₀ + b| ÷ √(m² + 1) for the line y = mx + b.

Which slopes are perpendicular?

Those whose product is −1, such as 2 and −1/2, or 3 and −1/3.

What if the given line is vertical?

A parallel line is vertical (x = x₀) and the perpendicular is horizontal (y = y₀).