Skip to content

← Math Further 9–12

Why Do the ‘Vedic Mathematics’ Tricks Work?

Topic 41 · Grades 9–12 · Calculation tricks, their algebra and their history

What this builds on from class
In this unit 9 sections
  1. All from 9 and the last from 10
  2. Close to a round number
  3. Vertically and crosswise
  4. The digits are the coefficients, until they aren’t
  5. A trick, the identity, and when it pays
  6. Did the tricks come from the Vedas?
  7. Human calculators
  8. Questions
  9. Where to go next

Your cousin is back from a weekend “Vedic Maths” class, and wants to show off. “Give me a subtraction from a thousand.” You say 1,000 − 386. Before you have picked up a pencil she writes 614, without a single borrow. “Now two numbers to multiply.” You give her 43 × 21, and she writes the answer in one line, from right to left, with nothing underneath: 903. “These methods are in the Vedas,” she says. “Thousands of years old.”

Three questions are worth asking. Why do the tricks work, every time? Are they always quicker than the school way? And did they really come from the Vedas? Start with the one-line multiplication.

Try it

Multiply in one line

Start with 43 × 21. Each press of Next column joins, in red, the digits that are multiplied for that column. Then try your own numbers, up to four digits each.

3412×totalsanswer
×
Digit products used
0 of 4
Biggest total held
0
Answer
903

Start at the right. Each column joins the digits whose places add up to it: straight down first, then crosswise.

Write the last digit of the column’s total; carry the rest to the next column on the left.

One line of answer, but count the products: just as many as long multiplication uses, one for every pair of digits.

Guess first. Long multiplication of two 4-digit numbers multiplies 16 pairs of single digits (each digit of one by each digit of the other). How many digit products does the one-line method need?

Pick an answer to see why.

All from 9 and the last from 10

Here is your cousin’s subtraction. To take 386 from 1,000, take each digit from 9, except the last, which you take from 10:

Digit of 386 3 8 6
Taken from 9 9 10
Gives 6 1 4

So 1,000 − 386 = 614. In the book called Vedic Mathematics, the rule is a sutra, nikhilam navatashcaramam dashatah, “all from 9 and the last from 10”.

Why it works

Write 1,000 as 999 + 1. Then

1,000−386=(999−386)+1. 1{,}000 - 386 = (999 - 386) + 1.

Taking a number from 999 never needs a borrow, since no digit is bigger than 9: each column is just 9 minus the digit, 613. Adding the 1 back changes only the last digit, 614, as if it had been taken from 10.

The same holds for any number of digits. If N has n digits (zeros in front allowed), then 10ⁿ − N = (99…9 − N) + 1, with n nines. The number 99…9 − N, every digit taken from 9, is called the nines’ complement of N; one more than it, 10ⁿ − N, is its tens’ complement. When N ends in zeros, say 340, the zeros come out first: 1,000 − 340 = 10 × (100 − 34), which is why the trick skips them. Our program checked the rule, zeros and all, for every number below 100,000.

Which is 100,000 − 31,416?

Pick an answer to see why.

Close to a round number

The book’s main use for the same sutra is multiplying numbers near 10, 100 or 1,000. If you have read How Can You Multiply 98 × 97 in Your Head?, you know it: for 98 × 97, both 2 and 3 short of 100, the answer is 95 hundreds and 2 × 3 = 6, so 9,506. The book sets it out like this:

Number Short of 100
98 −2
97 −3
95 06

The left answer is either number less the other’s shortfall (98 − 3 or 97 − 2); the right is the shortfalls multiplied, filling as many places as the base has zeros.

The identity behind it

Call the base x and the shortfalls a and b. Expanding the brackets, as in Grade 8,

(x−a)(x−b)=x2−ax−bx+ab=x (x−a−b)+ab. (x - a)(x - b) = x^2 - ax - bx + ab = x\,(x - a - b) + ab.

The left part, x − a − b, is the “left answer”, counted in units of the base; ab is the right. This is an identity: true for every value of x, a and b, so the trick can be trusted for any base, and for numbers over the base too, where a shortfall is negative. Three cases from one line:

  • Base 1,000. 996 × 988: shortfalls 4 and 12, so 984 thousands and 48 in three places, 048: 984,048.
  • Over the base. 104 × 107: shortfalls −4 and −7, so 104 + 7 = 111 hundreds and (−4)(−7) = 28: 11,128.
  • One over, one under. 103 × 98: shortfalls −3 and 2, so 101 hundreds and (−3)(2) = −6: 10,100 − 6 = 10,094.

The base needn’t be a power of ten: with 50, 49 × 48 is 47 fifties and 1 × 2 = 2, so 2,350 + 2 = 2,352.

Where it stops helping

The identity never fails, but the trick only helps when the corner ab is easy. For 63 × 58 near 100 the corner is 37 × 42 = 1,554, harder than the question you started with. Roughly, the trick wins when both numbers are within about 10 of the same base.

Vertically and crosswise

Now the one-line multiplication, urdhva-tiryagbhyam, “vertically and crosswise”. For 43 × 21:

  1. Vertically on the right: 3 × 1 = 3. Write 3.
  2. Crosswise: 4 × 1 + 3 × 2 = 10. Write 0, carry 1.
  3. Vertically on the left: 4 × 2 = 8, plus the carry, 9. Write 9.

Answer: 903. With bigger digits the carries pile up. For 57 × 46: 7 × 6 = 42 (write 2, carry 4), then 5 × 6 + 7 × 4 = 58, plus 4 is 62 (write 2, carry 6), then 5 × 4 = 20, plus 6 is 26: 2,622.

Why it works: a number is a polynomial

The number 43 means 4 × 10 + 3. Write the ten as x, and 43 is the polynomial 4x + 3; 21 is 2x + 1. Multiply the polynomials, as in Optional Math’s Polynomial:

(4x+3)(2x+1)=8x2+(4×1+3×2) x+3=8x2+10x+3. (4x + 3)(2x + 1) = 8x^2 + (4 \times 1 + 3 \times 2)\,x + 3 = 8x^2 + 10x + 3.

The three columns are the three coefficients: the x² term comes from the two left digits (vertically), the x term from the two crossed pairs (crosswise), the number term from the right digits. Put x = 10 back: 800 + 100 + 3 = 903. In letters, for any two-digit numbers,

(ax+b)(cx+d)=ac x2+(ad+bc) x+bd. (ax + b)(cx + d) = ac\,x^2 + (ad + bc)\,x + bd.

For three digits, (ax² + bx + c)(dx² + ex + f) has five coefficients, and the column for xᵏ collects every pair of digits whose places add up to k. That is the whole sutra: multiplying polynomials, with x = 10, and the carrying done as you go. The widget’s red lines are those pairs.

In 123 × 456, which products make up the middle column, the one for x²?

Pick an answer to see why.

Same work, different bookkeeping

Count the work. Two n-digit numbers have n × n pairs of digits, and each pair is multiplied once whichever method you use: long multiplication goes row by row, the one-line method column by column. What differs is where the adding happens: on paper at the end, or in your head as you go. For 9,999 × 9,999 the middle column is 81 + 81 + 81 + 81 = 324, plus the carry, held in your head while you keep your place among the crossed lines.

That is exactly what the mathematician S. G. Dani found when he looked at the whole book in 1993: the methods “turn out to be quicker only for certain special classes of examples. For a general example the amount of effort involved (for instance, the count of the individual operations needed to be performed with digits, in arriving at the final answer) is about the same as required by the standard methods”. For two-digit numbers with small digits, one line is quicker. For four digits, it is the same work with less paper and more to remember: “faster” in a demonstration usually means “fewer things written down”.

Fewer than n × n?

In 1960 a 23-year-old student in Moscow, Anatoly Karatsuba, saw that the crosswise sum needs only one new product, not two:

ad+bc=(a+b)(c+d)−ac−bd. ad + bc = (a + b)(c + d) - ac - bd.

For 57 × 46: ac = 20, bd = 42, (5 + 7)(4 + 6) = 120, so the middle is 120 − 20 − 42 = 58. Three products instead of four; used again and again on halves of long numbers, it was the first method ever found that beats n × n.

The digits are the coefficients, until they aren’t

The polynomial view explains a famous pattern. Square 11, 111, 1,111…

Square
11² 121
111² 12,321
1,111² 1,234,321
11,111² 123,454,321
111,111,111² 12,345,678,987,654,321

Predict 1,111,111,111², ten ones squared.

Pick an answer to see why.

This is the twist in every “digit” trick. The polynomial identity never breaks; what breaks is reading the answer off as digits, the moment a coefficient reaches 10. Every carry in the one-line method is that moment.

A trick, the identity, and when it pays

Here are the book’s most famous tricks side by side. The first two columns are true for every number; the last two say when the trick is worth using.

Trick The identity (x = 10, 100, …) Quick when No help when
All from 9, the last from 10 10ⁿ − N = (99…9 − N) + 1 always: it is just subtracting from 1,000… subtracting from a number that isn’t a power of ten
Near a base (nikhilam) (x − a)(x − b) = x(x − a − b) + ab both numbers near the same base the shortfalls are big
Vertically and crosswise (ax + b)(cx + d) = acx² + (ad + bc)x + bd two digits, small digits many digits: same products, bigger sums in your head
Ending in 5 (ekadhikena purvena, “by one more than the one before”) (10t + 5)² = 100t(t + 1) + 25 squares of numbers ending in 5 any other last digit

Did the tricks come from the Vedas?

So: the tricks work, and some are clever; several have older Indian relatives; the book is from the 20th century. Dani, who wrote the sharpest criticism of its title, still said that “some of the observations could be used in teaching in schools. They are entertaining and could to some extent enable children to enjoy mathematics”, best used to teach the ideas behind them, as here, “rather than like a series of tricks of magic”.

Which statement does the evidence support?

Pick an answer to see why.

Human calculators

On 18 June 1980, at Imperial College London, Shakuntala Devi was given two 13-digit numbers picked by the college’s computer department, 7,686,369,774,870 and 2,465,099,745,779, and in 28 seconds gave the product, 18,947,668,177,995,426,462,773,730: a world record (our program agrees with every digit). She had trained since childhood, giving shows with her father.

Some of her famous feats are easier than they look. In 1988 the psychologist Arthur Jensen, in California, handed her two cards: the cube root of 61,629,875 and the seventh root of 170,859,375. She answered 395 and 15 before he could write the questions down. You can learn to do the first kind.

Cube roots in two looks

Try it

Be the human calculator

Each number is the cube of a two-digit number. Tap the root’s last digit, then its first. The table of cubes is all you need to remember.

∛ 110,592= ??nn³112832746451256216734385129729
Solved
0
This one
–
Fastest
–

Last digit first: which number in the table has a cube ending in the same digit as this cube? Tap that digit.

Now cover the last three digits. Which is the biggest cube in the table that is no more than what is left? Tap its n.

That is the cube root. Two looks at a table, no multiplying. Try the next one faster.

Not that one. Look again at the red digits.

Two facts make it work.

  • The last digit. The last digit of a product depends only on the last digits of the numbers multiplied. The cubes of 0 to 9 end in 0, 1, 8, 7, 4, 5, 6, 3, 2, 9: ten different digits. So the last digit of a cube names the last digit of its root: 2 and 8 swap, 3 and 7 swap, the rest stay. A cube ending in 1 has a root ending in 1.
  • The first digit. If the root is 10t + u, its cube is between (10t)³ = 1,000t³ and (10t + 10)³ = 1,000(t + 1)³. Cover the last three digits of the cube and what is left lies between t³ and (t + 1)³. For 357,911: 357 lies between 7³ = 343 and 8³ = 512, so t = 7, and the last digit 1 gives 71.

Jensen’s 61,629,875 has a three-digit root, so the middle digit needs a further step, but the start is the same: it ends in 5, so the root does, and 61,629,875 is just under 64,000,000 = 400³, so the root is just under 400: 395. As the writer Peter Magnusson points out, the problem was easy for the method, if not for Jensen’s calculator.

The 23rd root

The most famous story is from 1977, at Southern Methodist University in Dallas: Devi gave the 23rd root of a 201-digit number, 546,372,891, in 50 seconds, and the reports said a UNIVAC computer took 62. Treat it with care. Magnusson notes that the UNIVAC 1101 named was a machine of the early 1950s, so that detail is likely wrong, and that the computer had the harder job: raising a number to the 23rd power, not rooting a number known to be a perfect power.

The method is the cube root’s, stretched. The last four digits of the power fix the last four of the root: our program checked that among numbers ending in 1, 3, 7 or 9, no two different last-four-digit endings give the same ending when raised to the 23rd power, and 2891²³ ends in 6771, as the 201-digit number did. The first few digits come from logarithms, as in How Did a Book of Numbers Make Multiplying Easy?: the number is about 9.167 × 10²⁰⁰, its logarithm about 200.962, and a 23rd of that is about 8.7375, so the root is about 10⁸·⁷³⁷⁵, roughly 546 million. Only the middle digits are truly hard: a craft, not a mystery.

Memory, not magic

In 2001 a team led by Mauro Pesenti in Belgium scanned the brains of a German mental calculator, Rüdiger Gamm, and six people with ordinary maths skills while they calculated. The expert did not use the same brain areas harder: he used different ones, switching between effortful short-term holding of numbers and long-term memory, where he stored and fetched the steps of a long sum. Gamm, a news report of the study notes, showed no aptitude for maths until he was 20 and trained four hours a day. The psychologist Brian Butterworth’s reading of it: “The study shows that anyone can develop exceptional capacities if they work at it.”

Questions

★ What is 10,000 − 4,067?

Pick an answer to see why.

a.★

Multiply vertically and crosswise, showing each column’s total: a. 32 × 23 b. 68 × 79

Answer
b.★★

Use the near-base rule: a. 996 × 993 b. 1,004 × 997. For each, say what the base is and what a and b are.

Answer

★★ Which is 11,111²?

Pick an answer to see why.

c.★★

Show with letters that vertically and crosswise works for every pair of three-digit numbers, and say which digit pairs make each of the five columns.

Hint
Answer
d.★★

Find the cube roots in your head: a. 357,911 b. 912,673 c. 110,592

Answer
e.★★★

The book’s first chapter finds 1/19 = 0.052631578947368421… (repeating) this way: start with 1 at the right, and double again and again, writing each result’s last digit to the left and carrying the rest. Check that it gives the 18 repeating digits, then explain why doubling works, using 20/19 = 1 + 1/19.

Hint
Answer

Where to go next

Where these facts come from
  • The book Vedic Mathematics (1965, after Tirtha’s death in 1960), Tirtha as Shankaracharya of the Govardhan Math, Puri, from 1925, his lectures and demonstrations, the 16 sutras and 13 sub-sutras of two to four words, the claim of a Parishishta of the Atharva Veda, Shukla’s request in 1950 at Lucknow and the reply “his own Parishishta”, Agrawala’s foreword (not in the known Parishishtas; the style points “to their discovery by Shri Swamiji himself”), Manjula Trivedi’s account (reconstruction, forests near Sringeri), decimal fractions in chapter 1 and their 16th-century start, factorisation and HCF of expressions as alien to ancient Indian mathematics, his M.A. in mathematics and the suggestion that he invented or developed the tricks, Trachtenberg and Meyers, the quotations on effort “about the same as required by the standard methods”, on choosing examples and working “by rote anyway”, and on use in teaching, the Shulvasutras of about 800–500 BC and Baudhayana’s statement of the Pythagorean theorem, and the sutras ekadhikena purvena (1/19 and squares ending in 5): S. G. Dani, “Myths and reality: On ‘Vedic mathematics’”, an updated version of his articles in Frontline, 22 October and 5 November 1993, read October 2026.
  • Tirtha’s dates (1884–1960), Govardhan Math from 1925, Sringeri, and the first edition (Motilal Banarsidass, 1965): Wikipedia, “Vedic Mathematics” and “Bharati Krishna Tirtha”, read October 2026.
  • Brahmagupta’s rule for a multiplicator “too great or too small” (§ 56 of his arithmetic), Bhaskara’s “quantity arbitrarily assumed” (Lilavati §§ 14–15), the tatstha in Sridhara’s rule, Colebrooke’s note that, from Ganesha’s gloss, it appears to be cross multiplication, the commentator’s reading of Brahmagupta’s rule as correcting a mistake, and Ganesha’s description, “difficult, and not to be learnt by dull scholars without oral instruction”: H. T. Colebrooke, Algebra, with Arithmetic and Mensuration, from the Sanscrit of Brahmegupta and Bhascara (London, 1817; public domain), pages 5–6 and 319–320, Internet Archive, read October 2026. Quotations are Colebrooke’s.
  • Ganesha Daivajna (born about 1507) and his Buddhivilasini on the Lilavati (about 1546): Wikipedia, “Gaṇeśa Daivajña”; Sridhara in the 8th–9th century: Wikipedia, “Śrīdhara”; both read October 2026.
  • The sutras’ names and meanings as Tirtha’s book gives them (nikhilam navatashcaramam dashatah, “all from 9 and the last from 10”, used for multiplying near a base such as 9 × 7 with base 10; urdhva-tiryagbhyam, “vertically and cross-wise”, its “General Formula applicable to all cases of multiplication”), quoted from the book: W. B. Vasantha Kandasamy and Florentin Smarandache, Vedic Mathematics: ‘Vedic’ or ‘Mathematics’ (2006), pages 11–19, read October 2026.
  • Pascal’s calculator of 1642: Wikipedia, “Pascaline”, read October 2026. Nines’ and tens’ complements, Pascal’s calculator, the Comptometer and the Curta, and two’s complement in modern computers: Wikipedia, “Method of complements”, read October 2026.
  • Karatsuba in 1960, aged 23, at Kolmogorov’s seminar in Moscow, three products instead of four, the first method faster than the school one: Wikipedia, “Karatsuba algorithm”, read October 2026.
  • Shakuntala Devi’s record (18 June 1980, Imperial College London, the two numbers chosen by its Computer Department, 28 seconds, the product): Guinness World Records, “Fastest human computation”, read October 2026.
  • Jensen’s test in 1988 (the cube root of 61,629,875 and the seventh root of 170,859,375; Intelligence 14, 259–274, 1990, not opened), the 1977 Southern Methodist University 23rd root, 546,372,891, 50 and 62 seconds and the UNIVAC 1101: Wikipedia, “Shakuntala Devi”, read October 2026. Doubts on the UNIVAC 1101 (a 1950s machine) and on the comparison with a computer, the cube-root method, the last four digits 2891 and 6771, and her childhood of shows with her father: Peter S. Magnusson, “Shakuntala Devi – the Human Computer” (2016), a blog post, read October 2026; his arithmetic was checked by our own program.
  • The brain-imaging study (one expert, non-experts, different brain areas, short-term and episodic memory): M. Pesenti and others, “Mental calculation in a prodigy is sustained by right prefrontal and medial temporal areas”, Nature Neuroscience 4, 103–107 (2001), abstract on PubMed, read October 2026. Gamm as a German mental calculator: Wikipedia, “Rüdiger Gamm”, read October 2026. Gamm’s name in the study, the six non-experts, no aptitude until 20, four hours a day, and Butterworth’s words: AuntMinnie, “PET explores the mind of a math prodigy”, read October 2026.
  • Every number in the topic (each complement, checked for every number below 100,000; each near-base product and the identity for bases up to 10,000; each crosswise column, checked against the true product for thousands of pairs; the counts of digit products; Karatsuba’s middle term; the squares of 1 to 12 ones; the ending-in-5 rule; 1/19 by doubling; the last digits of cubes and squares; all 90 two-digit cube roots by the two-look method; Shakuntala Devi’s product; the 201 digits of 546,372,891²³, its last four digits and its logarithm) was computed by a script, checks/textbooks/math-further-9-12/41/tmp/numbers.py.