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

Straight Lines: Slope and Forms of Equation | NIMCET

Learn the slope of a line, conditions for parallel and perpendicular lines, and the slope-intercept, point-slope, two-point, intercept, normal and general forms of a line, for NIMCET.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: The slope of a line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is m=y2−y1x2−x1=tan⁡θm = \frac{y_2 - y_1}{x_2 - x_1} = \tan\theta, where θ is its inclination. The most used forms are slope-intercept y=mx+cy = mx + c, point-slope y−y1=m(x−x1)y - y_1 = m(x - x_1), intercept xa+yb=1\frac{x}{a} + \frac{y}{b} = 1, and general ax+by+c=0ax + by + c = 0 with slope −ab-\frac{a}{b}. Lines are parallel if m1=m2m_1 = m_2 and perpendicular if m1m2=−1m_1 m_2 = -1.

Slope

LineSlope
Making angle θ with the positive x-axistan⁡θ\tan\theta
Through two pointsy2−y1x2−x1\frac{y_2 - y_1}{x_2 - x_1}
ax+by+c=0ax + by + c = 0−ab-\frac{a}{b}
Parallel to the x-axis0
Parallel to the y-axisUndefined

Parallel lines: m1=m2m_1 = m_2. Perpendicular lines: m1m2=−1m_1 m_2 = -1 (or one horizontal and the other vertical).

Collinearity by slope: A, B, C are collinear if slope AB = slope BC.

Forms of the equation of a line

FormEquationUse when you know
Slope-intercepty=mx+cy = mx + cSlope and y-intercept
Point-slopey−y1=m(x−x1)y - y_1 = m(x - x_1)Slope and one point
Two-pointy−y1=y2−y1x2−x1(x−x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1)Two points
Interceptxa+yb=1\frac{x}{a} + \frac{y}{b} = 1Both intercepts
Normalxcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = pPerpendicular distance p from origin and its angle α
Parametricx=x1+rcos⁡θx = x_1 + r\cos\theta, y=y1+rsin⁡θy = y_1 + r\sin\thetaA point, direction, and distance r along the line
Generalax+by+c=0ax + by + c = 0Any line

From general form to other forms

For ax+by+c=0ax + by + c = 0:

QuantityValue
Slope−ab-\frac{a}{b}
x-intercept−ca-\frac{c}{a}
y-intercept−cb-\frac{c}{b}

To normal form: divide by ±a2+b2\pm\sqrt{a^2 + b^2}, choosing the sign that makes the right-hand side positive.

Lines parallel and perpendicular to a given line

Required lineEquation
Parallel to ax+by+c=0ax + by + c = 0ax+by+k=0ax + by + k = 0
Perpendicular to ax+by+c=0ax + by + c = 0bx−ay+k=0bx - ay + k = 0

Find k by substituting the given point.

Worked examples

Example 1: two-point form

Find the line through (1,2)(1, 2) and (3,8)(3, 8).

Step 1: m=8−23−1=3m = \frac{8 - 2}{3 - 1} = 3.

Step 2: y−2=3(x−1)y - 2 = 3(x - 1), so y=3x−1y = 3x - 1.

Example 2: intercept form

A line cuts intercepts 4 and −3 on the axes. Find its equation.

x4+y−3=1\frac{x}{4} + \frac{y}{-3} = 1, so 3x−4y=123x - 4y = 12.

Example 3: perpendicular line through a point

Find the line through (2,−1)(2, -1) perpendicular to 3x+4y=73x + 4y = 7.

Step 1: Perpendicular form: 4x−3y+k=04x - 3y + k = 0.

Step 2: Substitute (2,−1)(2, -1): 8+3+k=08 + 3 + k = 0, so k=−11k = -11.

Answer: 4x−3y=114x - 3y = 11.

Example 4: normal form

Write 3x+y=4\sqrt{3}x + y = 4 in normal form.

Divide by 3+1=2\sqrt{3 + 1} = 2: 32x+12y=2\frac{\sqrt{3}}{2}x + \frac{1}{2}y = 2, that is, xcos⁡30∘+ysin⁡30∘=2x\cos 30^\circ + y\sin 30^\circ = 2. So p=2p = 2 and α=30∘\alpha = 30^\circ.

Summary table

IdeaKey result
Slope from general form−ab-\frac{a}{b}
ParallelEqual slopes
Perpendicularm1m2=−1m_1 m_2 = -1
Parallel line familyax+by+k=0ax + by + k = 0
Perpendicular line familybx−ay+k=0bx - ay + k = 0

Exam tips

  • Use the "swap and change sign" trick for perpendicular lines: ax+by→bx−ayax + by \to bx - ay.
  • For a line with equal intercepts, use x+y=ax + y = a; for intercepts equal in size but opposite in sign, x−y=ax - y = a.
  • The area of the triangle a line makes with the axes is 12∣ab∣\frac{1}{2}\lvert ab\rvert for intercepts a and b.

Next, see angle between lines and distance of a point, or browse the NIMCET Coordinate Geometry and Vectors chapter.

Common mistakes

  • Writing the slope of ax+by+c=0ax + by + c = 0 as ab\frac{a}{b} instead of −ab-\frac{a}{b}.
  • Using m1m2=−1m_1 m_2 = -1 when one line is vertical.
  • Forgetting the sign of a negative intercept in the intercept form.
  • Leaving p negative in the normal form.

Frequently Asked Questions

What is the slope of the line ax + by + c = 0?

The slope is −a/b.

When are two lines perpendicular?

When the product of their slopes is −1, or when one is horizontal and the other vertical.

What is the intercept form of a line?

x/a + y/b = 1, where a and b are the x- and y-intercepts.

What is the normal form of a line?

x cos α + y sin α = p, where p is the perpendicular distance from the origin and α is the angle that perpendicular makes with the x-axis.

How do you find a line perpendicular to ax + by + c = 0?

Write bx − ay + k = 0 and find k from the given point.

Concept Check

MEDIUM

If x=1+⁶√2+⁶√4+⁶√8+⁶√16+⁶√32, then (1+1/x)²⁴ =

Suggested for you