Perpendicular Line Calculator

Created by Bogna Szyk
Reviewed by Adena Benn
Last updated: Oct 17, 2022

If you want to solve a problem in geometry quickly, give this perpendicular line calculator a try. It finds the equation of a (yet undefined) line that is perpendicular to a given line and passes through a given point.

Additionally, it calculates the coordinates of the intersection point of the two lines. All you have to do is input the coordinates of any point and the coefficients describing the given line, and our perpendicular line equation calculator will do the math for you!

This article will explain how to find a perpendicular line using basic maths principles. It will also provide a simple example to illustrate how the method works.

Be sure to check out the parallel line calculator, too!

How to find a perpendicular line?

Every straight line in two-dimensional space can be described by a simple line equation:

y = ax + b

where a and b are coefficients, x is the x-coordinate, and y is the y-coordinate. Every line is uniquely defined if the values of a and b are known.

Let's assume that you know the following information:

  1. The equation of the given line is y = mx + r. You know the values of m and r and are looking for a line perpendicular to this one.
  2. You also know the coordinates of the point your line is supposed to pass through. They are x₀ and y₀.

The slope of any line is equal to the value of the a coefficient. If two lines are perpendicular, the product of their slopes equals -1. Hence,

a × m = -1

a = -1 / m

To find the b coefficient (also known as the y-intercept), you have to substitute in the coordinates (x₀,y₀) and the value of a into the equation of your line:

y = ax + b

y₀ = -1 × x₀ / m + b

b = y₀ + 1 × x₀ / m

💡 To find the slope of other lines, use our slope calculator.

Perpendicular line equation: an example

How do these calculations look in practice? Let's assume that you want your line to pass through the point (3, 5) and be perpendicular to the line y = 2x - 2. You can find the perpendicular line equation when following these steps:

  1. Identify the slope (m) and the y-intercept (r) of the given line. In this case, m = 2 and r = -2.

  2. Calculate the slope of your line. It is equal to

    a = -1 / m = -1/2 = -0.5

  3. Input this value into the line equation y = ax + b:

    y = -0.5x + b

  4. Substitute the coordinates (3,5) for the values of x and y:

    5 = -0.5 × 3 + b

    5 = -1.5 + b

    b = 6.5

  5. As the last step, input the b coefficient into the line equation:

    y = -0.5x + 6.5

Don't believe it? Check the result with this perpendicular line calculator!

Finding the intersection point

Once you know the equation of the new line, finding the intersection point between it and the first (given) line is a straightforward task. All you have to do is find a point with coordinates (xₐ,yₐ) such that it lies on each of the two lines.

Consider the example we've just analyzed. We found two perpendicular lines: y = 2x - 2 and y = -0.5x + 6.5. These two equations form a system of equations with two unknowns - the coordinates of the point of intersection.

Let's solve this system of equations:

yₐ = 2xₐ - 2

yₐ = -0.5xₐ + 6.5

Multiplying the second equation by 4, you get

yₐ = 2xₐ - 2

4yₐ = -2xₐ + 26

Adding the two equations together,

5yₐ = 24

From there,

yₐ = 4.8

xₐ = 0.5yₐ + 1 = 2.4 + 1 = 3.4

The coordinates of the point of intersection are (3.4, 4.8).

Of course, you don't have to carry out these tedious calculations all by yourself – our perpendicular line calculator can do the same in just a few seconds! And don't forget to check our other coordinate geometry calculators like the average rate of change calculator.

Bogna Szyk
First line equation y = mx + r
Second line passes through point...
Perpendicular line equation y = ax + b
Point of intersection
Check out 38 similar coordinate geometry calculators 📈
Average rate of changeBilinear interpolationCatenary curve… 35 more
People also viewed…

Flat vs. round Earth

Omni's not-flat Earth calculator helps you perform three experiments that prove the world is round.


The quaternion calculator is here to deal with all your quaternion-related problems: finding the sum, difference, product, quotient, magnitude, conjugate, inverse, matrix representation, quaternion of rotation, or vector rotation.

Social Media Time Alternatives

Check what you could have accomplished if you get out of your social media bubble.

Surface area of a triangular prism

The surface area of a triangular prism calculator is the simplest way to calculate the surface of many different types of triangular prisms.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background