Squaring Numbers in Your Head
A single algebraic identity turns squaring any two-digit (or bigger) number into an easy multiplication near a round base — the fastest mental-math trick to drill for interviews.
Prerequisites: Converting Fractions, Decimals and Percentages
Squaring a number like 47 by brute-force multiplication () means carrying digits through a two-line calculation — slow and error-prone to do silently in your head. But 47 is close to the friendly round number 50, and there's a shortcut that turns any squaring problem into "distance from a round number" arithmetic, which is almost always faster.
The identity behind the trick
The shortcut is just the algebraic identity for the difference of squares, rearranged:
where is any convenient distance you choose. In plain English: pick so that is a round, easy-to-multiply number (usually a multiple of 10), multiply by — which is easy because one factor is round — then add back to correct for the fact that isn't quite .
Worked example 1: 47²
Let . Choose so that , a round number. Then . Compute:
is easy (half of 4,400), and adding 9 is trivial — the whole calculation takes seconds instead of a full long multiplication. Compare that to multiplying 47 by 47 digit-by-digit, carrying partial products: the round-base version has no carrying at all.
Worked example 2: 96² using a base of 100
Let , choose so . Then .
Multiplying by 100 is instant, so the entire square reduces to one subtraction (100 − 96 = 4, giving 92) and one small addition. This version of the trick — basing off 100 — is the single most useful case to have automatic, since so many mental-math questions involve numbers in the 80s and 90s.
What this means in practice
This trick is the workhorse behind faster mental math generally — variance calculations, quick standard-deviation estimates, and option-Greek sanity checks all involve squaring numbers, and doing it via a round base is dramatically faster than direct multiplication once it's automatic. The skill compounds: once squaring near 50 or 100 is instant, estimating square roots (the inverse operation) and multiplying two nearby numbers become easy extensions of the same identity. It's worth drilling until it's reflexive — the whole point is to free up mental bandwidth for the actual interview question, rather than burning it on arithmetic that a well-practiced candidate does without conscious effort.
for any — choose so lands on a round number (usually a multiple of 10), and the multiplication becomes trivial plus a small correction.
For two-digit numbers, basing off 50 or 100 covers almost everything. For numbers just above a round number (like 103), use a negative the same way: using .
Related concepts
Practice in interviews
Further reading
- Common quant interview prep guides (mental math drills)