Quant Memo
Core

Multiplying Numbers Near a Round Base

A generalization of the squaring trick — multiply two numbers that are both close to a round number by working with their distances from that base instead of the numbers themselves.

Prerequisites: Squaring Numbers in Your Head

Squaring a number near a round base is a special case of a more general trick: multiplying any two numbers that both happen to sit close to the same round number, like 97×10397 \times 103 or 48×5348 \times 53. Doing these longhand is slow; doing them via their distances from a shared base turns them into small, easy arithmetic almost every time.

The trick: distances from a shared base

Pick a convenient base BB (usually a multiple of 10 or 100) close to both numbers. Write each number as the base plus or minus a small offset: x=B+ax = B + a, y=B+by = B + b. Then:

xy=B(x+yB)+ab.xy = B(x+y-B) + ab .

In plain English: multiply the base by the sum of the two offsets-from-base combined back into the numbers (which is just x+yBx+y-B, easy since it's near BB), then add the product of the two small offsets — a small correction that's easy to compute since aa and bb are small.

A cleaner way to remember it when both offsets are known: xy=B2+B(a+b)+abxy = B^2 + B(a+b) + ab, but in practice the fastest path is usually to compute B×(x+yB)B \times (x + y - B) directly since that's one multiplication by a round number, then add abab.

Worked example 1: 97 × 103

Base B=100B = 100. Offsets: a=3a = -3 (since 97=100397 = 100 - 3), b=3b = 3 (since 103=100+3103 = 100+3). Then x+yB=97+103100=100x + y - B = 97 + 103 - 100 = 100, so:

97×103=100×100+(3)(3)=10,0009=9,991.97 \times 103 = 100 \times 100 + (-3)(3) = 10{,}000 - 9 = 9{,}991 .

This is the difference-of-squares pattern in disguise — when offsets are equal and opposite, xy=B2a2xy = B^2 - a^2 directly, since 97×103=(1003)(100+3)=10023297 \times 103 = (100-3)(100+3) = 100^2 - 3^2.

Worked example 2: 48 × 53 (unequal offsets)

Base B=50B = 50. Offsets: a=2a = -2 (48 = 50 − 2), b=3b = 3 (53 = 50 + 3). Compute x+yB=48+5350=51x + y - B = 48 + 53 - 50 = 51, so:

48×53=50×51+(2)(3)=2,5506=2,544.48 \times 53 = 50 \times 51 + (-2)(3) = 2{,}550 - 6 = 2{,}544 .

50×5150 \times 51 is instant (half of 5,100), and the correction is a tiny single-digit multiplication — far faster than multiplying 48 by 53 directly.

97 (−3) base 100 103 (+3)
Both factors are expressed as small offsets from a shared round base, turning the multiplication into 100 × 100 plus a tiny correction.

What this means in practice

This trick shows up constantly when estimating notional values, position sizes, or quick P&L calculations in an interview — numbers in trading questions are frequently "near round" by design, since interviewers pick them that way to test exactly this skill. Combined with the squaring shortcut, it's the difference between visibly struggling through two-digit multiplication and answering before the interviewer finishes writing the number down.

To multiply two numbers near a shared base BB, write xy=B(x+yB)+abxy = B(x+y-B) + ab where a,ba,b are the small offsets from BB — one round multiplication plus a small correction, instead of full long multiplication.

Choose the base that makes both offsets smallest, not necessarily the nearest round number to just one factor — the smaller both offsets are, the smaller and easier the correction term.

Related concepts

Practice in interviews

Further reading

  • Common quant interview prep guides (mental math drills)
ShareTwitterLinkedIn