Distance of a point from a line
Drop a perpendicular from any point to any straight line and there is exactly one foot where it lands — and the length of that perpendicular segment is, by definition, the shortest possible distance from the point to the line. Every other path from the point to the line is longer. Coordinate geometry turns this geometric fact into a one-line formula: write the line in general form , plug in the point's coordinates, and the perpendicular distance falls out directly, no diagram or construction needed. This sits in the Straight Lines chapter of CBSE Class 11 Coordinate Geometry, right after the various forms of a line's equation, and it quietly underlies later ideas like the distance between two parallel lines. The formula rewards careful bookkeeping — get the line into the right form, read off , , correctly, and the rest is arithmetic.
The perpendicular distance of a point from the line is .
The core idea
Among all the line segments joining a point to a given line, the perpendicular one is shortest — this is why "the distance of a point from a line" always means the perpendicular distance, not distance to some arbitrary point on the line. For a line in general form,
the perpendicular distance of a point from it is
where: , , are the coefficients of the line's general equation, is the given point, and the modulus in the numerator forces regardless of which side of the line the point sits on. A few structural facts make this formula easy to use correctly. If the point lies on the line, then exactly, so — the formula degrades gracefully to the case it should. The distance of the origin from a line is nothing new — just set in the same formula, giving . Rescaling the whole equation by any nonzero constant changes nothing: the numerator picks up a factor and so does the denominator, and they cancel. That is why clearing fractions or common factors before substituting is always safe. If a line is given in any other form — slope-intercept , intercept form, or two-point form — it must first be rearranged into before the formula applies at all; plugging numbers in from the wrong form is the single most common source of error. It also helps to notice what the formula is really doing dimensionally. The numerator measures how far the point's coordinates are from satisfying the line's equation — zero if the point is on the line, and growing as the point moves away from it. But this raw number depends on how the line's equation happens to be scaled (multiplying by doubles it, for instance), so dividing by — the length of the vector of coefficients — normalises it back into an honest, scale-independent length. That normalising denominator is exactly why the scaling fact above holds: it cancels whatever factor the numerator picked up.
The goal is to derive the formula for the perpendicular distance of a point from the line , starting only from the two-point distance formula and the fact that a perpendicular from a point to a line meets it at a single foot, so that the result the syllabus asks students to quote is not merely memorised but justified from first principles.
Step 1. Let be the foot of the perpendicular dropped from the point onto the line . Since lies on the line, , and the segment is perpendicular to the line, so is parallel to the line's normal direction — the direction that measures how steeply the line's value changes as you move away from it.
Step 2. Because is parallel to , write and for some real number : starting from and stepping a distance proportional to along the direction lands exactly on the foot . The unknown measures how far along that normal direction one must travel.
Step 3. Substitute into : , which gives , so . This pins down exactly how far along the normal direction one must move from to land on the line.
Step 4. The distance is the length of the step taken, which is times the length of the direction vector , namely . So , exactly the formula stated above, and since it came from a length it is automatically non-negative.
Worked example
Problem. Find the perpendicular distance of the point from the line .
Step 1. Identify , , , and the point . Check the line is already in general form, so no rearrangement is needed.
Step 2. Substitute into the formula:
Step 3. Simplify: . Answer: units.
Competitive stretch
Problem. Find the distance of the origin from the line .
Step 1. Rearrange to general form: , then clear the fraction by multiplying through by : . This does not change the distance, since scaling the whole equation scales numerator and denominator of the formula by the same factor.
Step 2. Identify , , , and the point is the origin .
Step 3. Substitute: . Answer: units, matching what direct substitution into the unscaled equation would also give.
Common traps
- Plugging coefficients from a non-general form (like ) straight into the formula instead of first rearranging to .
- Dropping the absolute value and reporting a negative "distance," which has no meaning.
- Sign slips when moving terms across the equals sign — e.g. from forgetting that moving left flips its sign to give , not .
- Substituting in place of , or using coordinates from the wrong point when a problem gives several.
- Forgetting to simplify correctly — a common slip is writing as , which is only true if one of them is zero.
- Assuming the formula tells you which side of the line the point is on. It doesn't, by itself: the unsigned expression inside the modulus does carry that information (points on opposite sides give opposite signs before the absolute value is taken), but the standard distance formula throws that sign away, so extra reasoning is needed if the question also asks about sides.
Ask the tutor: want to practice rearranging equations into general form before computing distance, or try a few more distance problems with different lines?
Why does the formula use the absolute value instead of just Ax1 plus By1 plus C over the square root?
Without the modulus, the expression can come out negative when the point lies on one side of the line and positive on the other — it is a signed quantity related to which side of the line the point is on. But "distance" by definition cannot be negative, so the formula wraps the numerator in absolute value bars to guarantee a non-negative answer regardless of which side the point lies on.
Do I have to rearrange every line into Ax plus By plus C equals 0 before finding a distance?
Yes, always. The formula is defined specifically for a line written in general form, so if you are given , two-point form, or intercept form, the very first step is to move every term to one side to get , then read off , , carefully before substituting. Skipping this step is the most common reason students get the wrong sign or the wrong coefficient.
Is there a shortcut for distance from the origin specifically?
Yes — since the origin is just the point , substituting and into the general formula kills both the and terms, leaving . It is worth remembering this special case directly since it appears often, but it is not a separate formula — it is the same one with the point fixed at the origin. The same idea underlies why the derivation writes the foot of the perpendicular as the point shifted by an unknown multiple of the normal direction : forcing that shifted point onto the line pins down , and the length travelled, once simplified, is exactly the formula — so it is not an arbitrary rule but a genuine consequence of "shortest path is the perpendicular one."