Mental Calculation of Logarithms

8-minute read • Memory Techniques Wiki

You can work out the base-10 logarithm of almost any number in your head to three or four decimal places. The trick is to memorize the logarithms of a handful of small primes, build every other value from them with a few rules, and close the remaining gaps with a small correction. This page shows the values to learn, the rules that stretch them, and worked examples you can check on a calculator.

Why Memorize Only a Few Logarithms

A logarithm answers the question “ten to what power gives this number?” The logarithm of 100 is 2, because 10 × 10 = 100, and the logarithm of 1,000 is 3. Every number between them has a logarithm between 2 and 3.

The useful property is that logarithms turn multiplication into addition. The logarithm of a product is the sum of the logarithms of its factors. That means you never need a table of thousands of values. If you know the logarithms of the primes, you know the logarithm of every number made from them.

Three values carry most of the load. With log 2 and log 3 you get 4, 6, 8 and 9. Since 5 is 10 divided by 2, log 5 comes free, because log 10 is exactly 1. Add log 7 and you have every whole number from 1 to 10, and from those every number whose prime factors are 2, 3, 5 and 7, such as 12, 14, 15, 18, 20, 21, 24, 25 and 28. For more reach, add 11, 13, 17 and 19.

Learn log 2, log 3 and log 7 to five decimal places: 0.30103, 0.47712 and 0.84510. Work with those and round only at the end, and your answers come out right to four decimal places, because the fifth place absorbs the small errors that pile up when you add several values together. Three places is enough for rough work. A number system such as the Major System makes the digits easier to remember.

Key Base-10 Logarithms

The values below are rounded to four decimal places. Build them from the five-place values and round at the end. Doubling 0.30103 gives 0.60206, so log 4 is 0.6021, while doubling the rounded 0.3010 would give 0.6020, one unit off in the last place.

NumberLogarithm (base 10)How to get it
20.3010memorize
30.4771memorize
40.60212 × log 2
50.69901 − log 2
60.7782log 2 + log 3
70.8451memorize
80.90313 × log 2
90.95422 × log 3
101.0000by definition
111.0414memorize
131.1139memorize
171.2304memorize
191.2788memorize

Two more constants are worth knowing. The base-10 logarithm of e is 0.4343, and the natural logarithm of 10 is 2.3026. The next sections use both.

Building the Rest from the Rules

Four rules turn the table into many more values.

A product adds. The logarithm of 6 is log 2 plus log 3, and the logarithm of 21 is log 3 plus log 7, which is 1.3222.

A quotient subtracts. The logarithm of 2.5 is log 10 minus log 4, which is 1 − 0.6021 = 0.3979.

A power multiplies. The logarithm of 2 to the tenth power is 10 × 0.3010 = 3.010, which is how you can see without multiplying that 2 to the tenth is a little over 1,000. It is 1,024.

Moving the decimal point changes only the whole-number part. The logarithm of 7,000 is 3.8451, and the logarithm of 0.07 is 0.8451 − 2. The digits after the point, which mathematicians call the mantissa, depend only on the digits of the number, and the whole-number part, called the characteristic, depends only on where the decimal point sits.

The change of base handles other bases. To get a natural logarithm, multiply the base-10 value by 2.3026, so the natural logarithm of 7 is 0.8451 × 2.3026 = 1.9459. To get a base-2 logarithm, divide by log 2, so the base-2 logarithm of 1,000 is 3 ÷ 0.3010, or about 9.97.

Filling the Gaps

Most numbers are not built from small primes. For those, find a nearby number that is, and correct for the difference.

The correction comes from one fact. When a number grows by a small fraction, its base-10 logarithm grows by about that fraction times 0.4343. If a number is 1 percent larger than one you know, its logarithm is about 0.0043 larger. The rule is close for gaps of a few percent and drifts high as the gap widens, so pick the nearest number you can factor. The correction comes out slightly too large, so a value reached by adding it is a little high, and one reached by subtracting it is a little low.

This is how you can check log 7 if you are unsure of it. Twice log 7 is log 49, and 49 is just under 50, whose logarithm is 1.6990. Going from 49 up to 50 is a rise of 1/49, about 0.0204, and 0.0204 × 0.4343 is about 0.0089. That makes log 49 about 1.6990 − 0.0089 = 1.6901, and half of that, 0.84505, rounds to 0.8451. The rule drifts high over a 2 percent gap, so the match to the last place is partly luck, but the check is easily close enough to tell you whether you remembered log 7 correctly.

The other way to fill a gap is linear interpolation between two values you know. The logarithm of 14 is log 2 plus log 7, which is 1.1461, and the logarithm of 15 is log 3 plus log 5, which is 1.1761. Halfway between them is 1.1611, while the true logarithm of 14.5 is 1.1614. Interpolation always comes out slightly low, because the logarithm curve bends downward between any two points. The correction method is usually closer, and interpolation is easier when two known values sit on either side.

Worked Examples

The logarithm of 5

Five is ten divided by two, so log 5 = log 10 − log 2 = 1 − 0.3010 = 0.6990. The true value is 0.69897, so the answer is right to four decimal places.

The logarithm of 12

Twelve is 4 × 3, so log 12 = log 4 + log 3 = 0.6021 + 0.4771 = 1.0792. The characteristic is 1 because 12 lies between 10 and 100. The true value is 1.07918.

The logarithm of 365

Start from 360, the nearest number built from small primes. It is 8 × 9 × 5, so log 360 = 0.9031 + 0.9542 + 0.6990 = 2.5563. Then correct for the difference. 365 is larger than 360 by 5/360, which is about 0.0139, and 0.0139 × 0.4343 is about 0.0060. Adding the two gives log 365 = 2.5623, which matches the true value of 2.56229 to four decimal places.

How Mental Calculators Use Logarithms

Logarithms turn hard operations into easy ones. A root becomes a division, so the cube root of a number is ten raised to a third of its logarithm. Take the cube root of 50,000. Its logarithm is 4.6990, and a third of that is 1.5663. Now go backwards. Log 36, which is log 4 plus log 9, is 1.5563, so the answer is a little over 36. The remaining 0.0100 divided by 0.4343 is about 0.023, so the answer is about 2.3 percent more than 36, or 36.8. The true cube root is 36.84.

The same steps handle high roots of long numbers, powers, and growth rates such as compound interest, where the alternative is a long chain of multiplications. Going backwards from a logarithm to a number is called taking the antilogarithm, and it uses the same table and the same correction in reverse. A logarithm estimate is also a quick way to see roughly where any root lies before you work out its digits by another method. Ron Doerfler’s articles on the 13th root of a 100-digit number, listed below, take root extraction much further.

Mental calculation competitions such as the Mental Calculation World Cup and Memoriad, which also has memory and speed reading events, test speed and accuracy with large numbers. The first World Cup, in 2004, included square roots of six-digit numbers.

Where to Practice

Start by learning the table until you can recite log 2, log 3 and log 7 without thinking. Then take numbers from phone numbers or price tags, estimate their logarithms, and check each answer on a calculator.

The mental math hub has the other skills these methods rest on, such as multiplication and squaring. To practice estimating roots, the operation logarithms make easiest, play Root Sniper.

Further Reading