Exponentials & Logarithms

Change of Base Formula: How It Works and When to Use It

The change of base formula rewrites a log in any base as a quotient of logs in a new base: log⁡ba=log⁡calog⁡cb\log_b a=\dfrac{\log_c a}{\log_c b}. The argument goes on top, the old base goes on the bottom, and the new base cc can be any positive number except 1.

log⁡ba=log⁡calog⁡cb\log_b a = \frac{\log_c a}{\log_c b}

Try it with your numbers

Show every step

Calculators only offer base 10 and base ee, so this is how you get a decimal for something like log⁡320\log_3 20. It also makes mixed-base problems solvable and gives exact answers when the numbers share a hidden common base. If logs still feel slippery, What Is a Logarithm? covers the basics in a few minutes.

Where does the change of base formula come from?

The whole proof is one idea: a logarithm is an exponent, so turn it into an exponent equation and take logs of both sides. Let y=log⁡bay=\log_b a. Then by=ab^y=a. Take log⁡c\log_c of both sides and pull the exponent down with the power rule:

ylog⁡cb=log⁡ca⇒y=log⁡calog⁡cby\log_c b=\log_c a \quad\Rightarrow\quad y=\frac{\log_c a}{\log_c b}

Since yy was log⁡ba\log_b a, that is the formula. The power rule does all the work here, and proofs of the logarithm properties show where it comes from.

There is also a picture behind it. Write the result as log⁡ba=1log⁡cb⋅log⁡ca\log_b a=\dfrac{1}{\log_c b}\cdot\log_c a. The factor 1log⁡cb\dfrac{1}{\log_c b} is a constant that depends only on the two bases, not on aa. Changing base never changes the shape of a log curve. It only stretches it vertically by a fixed amount.

How do you use the change of base formula on a calculator?

Wrong versus right calculator entry for log base 3 of 20, 1.897 versus 2.727
ln(20 ÷ 3) is about 1.897, but ln 20 over ln 3 gives the true log₃ 20, about 2.727.

Follow the same three steps every time:

  1. Name the argument aa (the number inside the log) and the old base bb (the small subscript).
  2. Choose log or ln for the new base.
  3. Compute log⁡a\log a and log⁡b\log b separately, then divide the first by the second.

Example 1. Evaluate log⁡320\log_3 20.

log⁡320=ln⁡20ln⁡3≈2.99571.0986≈2.727\log_3 20=\frac{\ln 20}{\ln 3}\approx\frac{2.9957}{1.0986}\approx 2.727

Using base 10 gives the same result: 1.30100.4771≈2.727\dfrac{1.3010}{0.4771}\approx 2.727. The result is plausible because 32=93^2=9 and 33=273^3=27, and 20 sits between them.

The costly slip is typing ln⁡(20/3)\ln(20/3), which is ln⁡20−ln⁡3≈1.897\ln 20-\ln 3\approx 1.897, a different number. Compute each log first and divide the results. Keep at least five digits until the final division, because rounding early changes the third decimal. Spreadsheets skip the division: the entry =LOG(20,3) does it for you. The ln key is the natural logarithm.

Quick check

Evaluate log⁡712\log_7 12 to three decimal places.

Does it matter whether you pick log or ln?

No. Because ln⁡x=(ln⁡10)⋅log⁡x\ln x=(\ln 10)\cdot\log x, switching from log to ln multiplies the top and the bottom by the same constant. That constant cancels in the quotient, so both routes give identical answers. Use whichever key you find faster.

The reason the constant is ln⁡10\ln 10 comes down to what ln is: the logarithm with base Euler’s number ee. Every log is a rescaled copy of every other log, and the rescaling factor is itself a quotient of logs.

Conversion constants

ln⁡x≈2.3026 log⁡x\ln x\approx 2.3026\,\log x and log⁡x≈0.4343 ln⁡x\log x\approx 0.4343\,\ln x. These two numbers are reciprocals, since log⁡e≈0.4343\log e\approx 0.4343 and ln⁡10≈2.3026\ln 10\approx 2.3026.

How to find exact answers with change of base

Boxes showing 8 as three twos and 32 as five twos, giving log base 8 of 32 equals 5/3
8 is three 2s multiplied and 32 is five 2s, so log₈ 32 is 5 over 3.

If the base and the argument are both powers of one number, choose that number as the new base. Both logs then become small whole numbers and no calculator is needed. The ordinary logarithm rules cannot combine log⁡832\log_8 32 directly because the bases differ, but change of base brings both to base 2.

Example 2. Find log⁡832\log_8 32 exactly.

Since 8=238=2^3 and 32=2532=2^5, choose c=2c=2:

log⁡832=log⁡232log⁡28=53\log_8 32=\frac{\log_2 32}{\log_2 8}=\frac{5}{3}

Check: 85/3=(81/3)5=25=328^{5/3}=\left(8^{1/3}\right)^5=2^5=32.

This gives a shortcut. If b=kmb=k^m and a=kna=k^n, then log⁡ba=nm\log_b a=\dfrac{n}{m}. So log⁡25125=32\log_{25}125=\dfrac{3}{2} (both are powers of 5) and log⁡1632=54\log_{16}32=\dfrac{5}{4} (both are powers of 2). Finding the shared base is the whole skill. Look for 2, 3, 5 or 10 first.

What are the reciprocal and chain forms of the formula?

Choose the new base to be aa itself. Since log⁡aa=1\log_a a=1, the formula collapses to a reciprocal:

log⁡ba=1log⁡ab\log_b a=\frac{1}{\log_a b}

So log⁡42=1log⁡24=12\log_4 2=\dfrac{1}{\log_2 4}=\dfrac{1}{2}. Swapping base and argument flips the answer upside down, which is a quick way to turn an awkward log into an easy one.

Chaining the formula gives log⁡ab⋅log⁡bc=log⁡ac\log_a b\cdot\log_b c=\log_a c. Written as fractions, log⁡blog⁡a⋅log⁡clog⁡b\dfrac{\log b}{\log a}\cdot\dfrac{\log c}{\log b}, the middle log⁡b\log b cancels like any common factor. This lets you collapse long products.

Example 3. Simplify log⁡23⋅log⁡35⋅log⁡516\log_2 3\cdot\log_3 5\cdot\log_5 16.

The 3 and the 5 each appear once as an argument and once as a base, so they cancel:

log⁡23⋅log⁡35⋅log⁡516=log⁡216=4\log_2 3\cdot\log_3 5\cdot\log_5 16=\log_2 16=4

A related form handles a power in the base: log⁡bna=1nlog⁡ba\log_{b^n}a=\dfrac{1}{n}\log_b a. For instance, log⁡8x=13log⁡2x\log_8 x=\dfrac{1}{3}\log_2 x because 8=238=2^3. That form is the key to the next section.

Quick check

Simplify log⁡35⋅log⁡581\log_3 5\cdot\log_5 81.

How does change of base help solve equations?

Logarithm equations with different bases cannot be combined until the bases match. Change of base makes them match. For example, solve log⁡2x+log⁡4x=6\log_2 x+\log_4 x=6. Since 4=224=2^2, we have log⁡4x=12log⁡2x\log_4 x=\tfrac12\log_2 x, and then:

log⁡2x+12log⁡2x=6  ⇒  32log⁡2x=6  ⇒  log⁡2x=4  ⇒  x=16\log_2 x+\tfrac12\log_2 x=6\;\Rightarrow\;\tfrac32\log_2 x=6\;\Rightarrow\;\log_2 x=4\;\Rightarrow\;x=16

Check: log⁡216=4\log_2 16=4 and log⁡416=2\log_4 16=2, which add to 6. The full method for these problems is in solving logarithmic equations.

The formula also sits behind exponential equations. The solution of 3x=203^x=20 is x=log⁡320x=\log_3 20, and a calculator can only produce a number through ln⁡20ln⁡3\dfrac{\ln 20}{\ln 3}. Taking ln of both sides, as in solving exponential equations with logarithms, is the same move in a different order.

Try this: Solve log⁡3x+log⁡9x=3\log_3 x+\log_9 x=3 by rewriting log⁡9x\log_9 x in base 3. Then substitute your answer back in to confirm that the two logs add to 3.

What goes wrong with negatives, fractions and base 1?

The formula has limits. Every log in it must be defined, which means:

  • the argument aa must be positive,
  • the old base bb must be positive and not 1,
  • the new base cc must be positive and not 1.

If b=1b=1, then log⁡c1=0\log_c 1=0 and the denominator is zero. A negative argument has no real logarithm, so a calculator error such as “domain” means a sign slipped earlier.

Negative answers are fine, and they are common with fractional bases. For log⁡1/28\log_{1/2}8:

log⁡1/28=ln⁡8ln⁡(1/2)≈2.0794−0.6931=−3\log_{1/2}8=\frac{\ln 8}{\ln(1/2)}\approx\frac{2.0794}{-0.6931}=-3

Check: (1/2)−3=8(1/2)^{-3}=8. A fractional argument works the same way: log⁡5125=−2ln⁡5ln⁡5=−2\log_5\dfrac{1}{25}=\dfrac{-2\ln 5}{\ln 5}=-2.

The sign of the denominator explains why. A base between 0 and 1 makes log⁡cb\log_c b negative, which flips the curve over the x-axis. That is why graphing logarithmic functions with a base below 1 gives a falling curve.

A one-second sign check

If exactly one of aa and bb is below 1 (and the other is above 1), log⁡ba\log_b a must be negative. If both are above 1 or both below 1, it must be positive.

Where is the change of base formula used in real life?

Money is a clear case. At 5% annual growth, the doubling time solves 1.05t=21.05^t=2, so t=log⁡1.052t=\log_{1.05}2. No calculator has that key, so convert:

t=ln⁡2ln⁡1.05≈0.69310.04879≈14.21 yearst=\frac{\ln 2}{\ln 1.05}\approx\frac{0.6931}{0.04879}\approx 14.21\text{ years}

The growth curve behind it is covered in graphing exponential functions.

Computing is another. A system with 1000 distinct values needs log⁡21000=log⁡1000log⁡2=30.30103≈9.97\log_2 1000=\dfrac{\log 1000}{\log 2}=\dfrac{3}{0.30103}\approx 9.97, so 10 bits. Programming languages do exactly this when you ask for a log in an arbitrary base.

Music offers a third: the distance in semitones between two frequencies is 12log⁡2f2f112\log_2\dfrac{f_2}{f_1}. From 440 Hz to 660 Hz, that is 12⋅ln⁡1.5ln⁡2≈12(0.58496)≈7.0212\cdot\dfrac{\ln 1.5}{\ln 2}\approx 12(0.58496)\approx 7.02, a perfect fifth.

How can you check a change of base answer quickly?

Bracket the answer first. For log⁡450\log_4 50, note that 42=164^2=16 and 43=644^3=64, so the value must lie between 2 and 3. If your calculator says 0.57 or 6.8, something went wrong. This takes five seconds and catches most errors.

Next, catch the flipped fraction, the most common trap. If you divide in the wrong order you get the reciprocal. For log⁡320\log_3 20, flipping gives 12.727≈0.367\dfrac{1}{2.727}\approx 0.367, which is actually log⁡203\log_{20}3. The bracket check exposes it: 20 is bigger than 3, so the answer must exceed 1.

Finally, test by raising the base to your answer. Here 32.727≈203^{2.727}\approx 20, so the result stands.

Mixed bases also block expanding logarithms and condensing logarithms, which only work when every log shares one base. Convert first with the formula, then apply those rules.

Quick check

Between which two whole numbers does log⁡450\log_4 50 lie?

Practice problems

0 of 5 solved

  1. Evaluate log⁡27\log_2 7 to three decimal places.

  2. Find the exact value of log⁡927\log_9 27.

  3. Find the exact value of log⁡1/381\log_{1/3} 81.

  4. Solve 3x=503^x=50. Round to three decimal places.

  5. Solve log⁡4x=log⁡2(x−6)\log_4 x=\log_2(x-6).

Common questions

What is the change of base formula?

It says log⁡ba=log⁡calog⁡cb\log_b a=\dfrac{\log_c a}{\log_c b}, where cc is any new base that is positive and not 1. The argument goes on top and the old base goes on the bottom.

Can you pick any new base?

Yes, as long as it is positive and not equal to 1. Base 10 and base ee are the usual choices because calculators have keys for them, but base 2 or base 3 is often better for exact answers.

How do you change the base of a log on a calculator?

Type the log of the argument, divide by the log of the old base, and use the same key (log or ln) for both. Put each logarithm in its own parentheses so the calculator does not compute log⁡(a/b)\log(a/b) by mistake.

Why does log⁡ba\log_b a equal 1log⁡ab\dfrac{1}{\log_a b}?

Apply the formula with the new base aa: log⁡ba=log⁡aalog⁡ab\log_b a=\dfrac{\log_a a}{\log_a b}. Because log⁡aa=1\log_a a=1, the numerator is 1 and the result is the reciprocal.

Is log⁡alog⁡b\dfrac{\log a}{\log b} the same as log⁡ab\log\dfrac{a}{b}?

No. The quotient of two logs is a single number such as log⁡320≈2.727\log_3 20\approx 2.727, while log⁡ab\log\frac{a}{b} equals log⁡a−log⁡b\log a-\log b, a difference. They give different values.

Does the change of base formula work with negative numbers?

Not for the argument or the bases: real logarithms need positive inputs, and bases cannot be 1. The answer itself can be negative, for example log⁡1/28=−3\log_{1/2}8=-3.

Up next