NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Angle Between Lines and Distance of a Point | NIMCET

Learn the angle between two lines, the distance of a point from a line, the distance between parallel lines, the concurrency condition and families of lines through an intersection, for NIMCET.

6 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: The acute angle θ between lines with slopes m1m_1 and m2m_2 satisfies tan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left\lvert\frac{m_1 - m_2}{1 + m_1 m_2}\right\rvert. The perpendicular distance from (x1,y1)(x_1, y_1) to ax+by+c=0ax + by + c = 0 is ∣ax1+by1+c∣a2+b2\frac{\lvert ax_1 + by_1 + c\rvert}{\sqrt{a^2 + b^2}}, and the distance between parallel lines ax+by+c1=0ax + by + c_1 = 0 and ax+by+c2=0ax + by + c_2 = 0 is ∣c1−c2∣a2+b2\frac{\lvert c_1 - c_2\rvert}{\sqrt{a^2 + b^2}}. Every line through the intersection of L1=0L_1 = 0 and L2=0L_2 = 0 can be written L1+λL2=0L_1 + \lambda L_2 = 0.

This continues from slope and forms of the equation of a line.

Intersection of two lines

Solve the two equations together. For a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0:

ConditionLines are
a1a2≠b1b2\frac{a_1}{a_2} \ne \frac{b_1}{b_2}Intersecting (one point)
a1a2=b1b2≠c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} \ne \frac{c_1}{c_2}Parallel (no point)
a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}Coincident

Angle between two lines

tan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left\lvert\frac{m_1 - m_2}{1 + m_1 m_2}\right\rvert

For lines in general form, tan⁡θ=∣a1b2−a2b1a1a2+b1b2∣\tan\theta = \left\lvert\frac{a_1b_2 - a_2b_1}{a_1a_2 + b_1b_2}\right\rvert.

  • If 1+m1m2=01 + m_1 m_2 = 0, the lines are perpendicular.
  • If m1=m2m_1 = m_2, they are parallel.

Distance formulas

DistanceFormula
Point (x1,y1)(x_1, y_1) to ax+by+c=0ax + by + c = 0∣ax1+by1+c∣a2+b2\frac{\lvert ax_1 + by_1 + c\rvert}{\sqrt{a^2 + b^2}}
Origin to ax+by+c=0ax + by + c = 0∣c∣a2+b2\frac{\lvert c\rvert}{\sqrt{a^2 + b^2}}
Between ax+by+c1=0ax + by + c_1 = 0 and ax+by+c2=0ax + by + c_2 = 0∣c1−c2∣a2+b2\frac{\lvert c_1 - c_2\rvert}{\sqrt{a^2 + b^2}}

Before using the parallel-lines formula, make the coefficients of x and y identical in both equations.

Foot of the perpendicular and image

The foot (h,k)(h, k) of the perpendicular from (x1,y1)(x_1, y_1) to ax+by+c=0ax + by + c = 0 satisfies

h−x1a=k−y1b=−ax1+by1+ca2+b2\frac{h - x_1}{a} = \frac{k - y_1}{b} = -\frac{ax_1 + by_1 + c}{a^2 + b^2}

For the image (reflection), replace the right side with −2ax1+by1+ca2+b2-2\frac{ax_1 + by_1 + c}{a^2 + b^2}.

Position of a point relative to a line

Points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) are on the same side of ax+by+c=0ax + by + c = 0 if ax1+by1+cax_1 + by_1 + c and ax2+by2+cax_2 + by_2 + c have the same sign, and on opposite sides if the signs differ.

Concurrency and family of lines

Three lines aix+biy+ci=0a_ix + b_iy + c_i = 0 are concurrent if

∣a1b1c1a2b2c2a3b3c3∣=0\begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

(and no two are parallel). Every line through the intersection of L1=0L_1 = 0 and L2=0L_2 = 0 has the form L1+λL2=0L_1 + \lambda L_2 = 0.

Worked examples

Example 1: angle

Find the acute angle between y=2x+1y = 2x + 1 and y=−3x+4y = -3x + 4.

tan⁡θ=∣2−(−3)1+2(−3)∣=∣5−5∣=1\tan\theta = \left\lvert\frac{2 - (-3)}{1 + 2(-3)}\right\rvert = \left\lvert\frac{5}{-5}\right\rvert = 1

So θ=45∘\theta = 45^\circ.

Example 2: distance of a point

Find the distance from (3,−2)(3, -2) to 4x−3y+2=04x - 3y + 2 = 0.

∣12+6+2∣5=4\frac{\lvert 12 + 6 + 2\rvert}{5} = 4

Example 3: parallel lines

Find the distance between 3x+4y=53x + 4y = 5 and 6x+8y+15=06x + 8y + 15 = 0.

Step 1: Rewrite the second as 3x+4y+7.5=03x + 4y + 7.5 = 0; the first is 3x+4y−5=03x + 4y - 5 = 0.

Step 2: Distance =∣−5−7.5∣5=2.5= \frac{\lvert -5 - 7.5\rvert}{5} = 2.5.

Example 4: line through an intersection

Find the line through the intersection of x+y=4x + y = 4 and x−y=2x - y = 2 that passes through (1,0)(1, 0).

Step 1: (x+y−4)+λ(x−y−2)=0(x + y - 4) + \lambda(x - y - 2) = 0.

Step 2: At (1,0)(1, 0): −3+λ(−1)=0-3 + \lambda(-1) = 0, so λ=−3\lambda = -3.

Step 3: x+y−4−3x+3y+6=0x + y - 4 - 3x + 3y + 6 = 0, so −2x+4y+2=0-2x + 4y + 2 = 0, or x−2y−1=0x - 2y - 1 = 0.

Check: the intersection is (3,1)(3, 1), and 3−2−1=03 - 2 - 1 = 0 ✓.

Summary table

ResultFormula
Angletan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left\lvert\frac{m_1 - m_2}{1 + m_1 m_2}\right\rvert
Point to line∣ax1+by1+c∣a2+b2\frac{\lvert ax_1 + by_1 + c\rvert}{\sqrt{a^2 + b^2}}
Parallel lines∣c1−c2∣a2+b2\frac{\lvert c_1 - c_2\rvert}{\sqrt{a^2 + b^2}}
ConcurrencyCoefficient determinant =0= 0
Family through intersectionL1+λL2=0L_1 + \lambda L_2 = 0

Exam tips

  • Equalise coefficients before using the parallel-lines distance formula.
  • Use L1+λL2=0L_1 + \lambda L_2 = 0 to avoid finding the intersection point.
  • For images and feet of perpendiculars, the ratio formula is much faster than solving equations.

Next, read pair of straight lines and homogeneous equations, or see the NIMCET Coordinate Geometry and Vectors chapter.

Common mistakes

  • Dropping the absolute value and getting a negative distance.
  • Using the parallel-lines formula when x and y coefficients differ.
  • Forgetting that tan⁡θ\tan\theta gives the acute angle; the obtuse angle is 180∘−θ180^\circ - \theta.
  • Using the image formula for the foot of the perpendicular (it has a factor of 2).

Frequently Asked Questions

What is the formula for the angle between two lines?

tan θ = |(m₁ − m₂)/(1 + m₁m₂)|, where m₁ and m₂ are the slopes.

What is the distance of a point from a line?

The distance from (x₁, y₁) to ax + by + c = 0 is |ax₁ + by₁ + c|/√(a² + b²).

How do you find the distance between two parallel lines?

Make the x and y coefficients equal, then use |c₁ − c₂|/√(a² + b²).

When are three lines concurrent?

When the determinant of their coefficients is zero and no two of them are parallel.

What is the equation of a line through the intersection of two lines?

L₁ + λL₂ = 0, where λ is found from one more condition.

Concept Check

MEDIUM

How many ways can 4 indistinguishable particles be placed into 3 distinguishable quantum energy levels according to Bose-Einstein statistics?

Suggested for you