Math Calculators, Lessons and Formulas

It is time to solve your math problem

mathportal.org

Distance between a line and a point calculator

google play badge app store badge

This online calculator uses the line-point distance formula to determine the distance between a point and a line in the 2D plane.

Find the distance from line $ L: y = x $ to the point $ \left(0,~0\right) $.

solution

The distance between the line and the point is:

$$ d = 0 $$

explanation

The distance from the point $ (x_0, y_0) $ to the line $ Ax + By + C = 0 $ is given by:

$$ d = \frac{ \left| Ax_0 + B_yo + C \right| }{ \sqrt{A^2 + B^2}} $$

To apply this formula, we first need to express the line in standard form

$$\begin{aligned} y & = x \\x-y&=0\end{aligned}$$

After substituting: $ A = 1 $ , $ B = -1 $ , $ C = 0 $ , $ x_0 = 0 $ and $ y_0 = 0 $ we have:

$$ \begin{aligned} d =& \frac{ \left| 1\cdot0 +\left(-1\right)\cdot0 + 0 \right| }{\sqrt{ 1^2 + (-1)^2}} = \\ d =& \frac{ \left| 0 + 0 + 0 \right| }{\sqrt{ 1 + 1}} = \\ d =& \frac{ \left| 0 \right| }{\sqrt{ 2}} = \\ d =& \frac{ 0 }{ \sqrt{ 2 } } = \\ d =& 0 \end{aligned} $$
Download Png

Report an Error!

Script name : line-point-distance

Form values: 1 , g , , 0 , 0 , 0 , 0 , 0 , 1 , 0 , , , , 1

Comment (optional)

 
close
Distance between a line and a point
supports lines in both standard and slope-intercept form
help ↓↓ examples ↓↓
+
+
+
Hide graph
Hide steps
Find approximate solution
thumb_up 1799 thumb_down

Get Widget Code

working...
Examples
ex 1:
Find the distance from the line 3x+4y-5= 0 to the point point (-2, 5).
ex 2:
Find the perpendicular distance from the point (5, -1) to the line y = 1/2x + 2
ex 3:
Find the perpendicular distance from the point (-3, 1) to the line y = 2x + 4.
Related calculators
Find more worked-out examples in our database of solved problems..
Search our database with more than 300 calculators
362 861 664 solved problems
×
ans:
syntax error
C
DEL
ANS
±
(
)
÷
×
7
8
9
4
5
6
+
1
2
3
=
0
.