On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Change of Base Formula

The change-of-base formula rewrites a logarithm of one base as a ratio of logs in another base.

log⁡bx=log⁡axlog⁡ab
Most commonly: log⁡bx=ln⁡xln⁡b or log⁡bx=log⁡10xlog⁡10b.

Quick Answer

The change-of-base formula rewrites a logarithm of one base as a ratio of logs in another base. In symbols, log⁡bx=ln⁡xln⁡b: the log of the number on top, the log of the base underneath. Use it when you need a decimal value for a log your calculator has no key for, such as log⁡27 or log⁡520; when solving 3x=50 ends in log⁡350 and you want a number; or when you compare or graph logs with different bases. Any base works in the middle, as long as the top and bottom use the same one.

Why This Matters

With this formula every logarithm becomes computable on a basic calculator, and every log function turns out to be a scaled copy of ln⁡x: log⁡2x is just ln⁡x divided by 0.693. Without it, log⁡27 stays a symbol, a doubling-time question cannot end in a number, and logs with different bases cannot be compared.

Intuitive Explanation

Start with a log you can do in your head: log⁡28=3, because three doublings turn 1 into 8. Now ask the same question in base e: ln⁡8≈2.079 and ln⁡2≈0.693, and 2.079÷0.693 comes out to 3. That is no accident. Since 8=23, the power rule gives ln⁡8=3ln⁡2, so dividing by ln⁡2 recovers the 3. The argument works for any number: if log⁡bx=y, then x=by, so ln⁡x=yln⁡b and y=ln⁡xln⁡b.

It behaves like a unit conversion. Logs in different bases all count how many times you multiply, but with steps of different sizes. One step of ×2 measures 0.693 in natural-log units, so to count how many ×2 steps fit into ln⁡7≈1.946, divide: 1.946÷0.693≈2.81. This is also why every log function is a constant multiple of every other: log⁡2x≈1.443ln⁡x for every positive x.

The formula resembles the quotient rule, but the two say different things. ln⁡xln⁡b is a quotient of two logs and changes the base; ln⁡xb=ln⁡x−ln⁡b is the log of a quotient and keeps the base. Numbers show the gap: ln⁡8ln⁡2=3, while ln⁡82=ln⁡4≈1.386. If a problem stays inside one base, use the log properties; use change of base only when the base itself has to change.

Think of it like this. Converting a log is like converting a trip from miles to kilometers: the trip stays the same, only the unit changes, so you divide by the size of one unit. Here the unit is one factor of b, which measures ln⁡b on the natural-log ruler. The analogy is exact, since all logs are constant multiples of each other.

Core idea. log⁡bx=log⁡axlog⁡ab rewrites a log in whatever base you can actually compute.


When to Use

Use it when a problem wants a decimal value of a log whose base is not 10 or e, such as log⁡340; when solving an equation like 2x=11 leaves a log in an unusual base; when you must graph y=log⁡5x on a calculator that takes only ln⁡ or log⁡; or when you compare logs of different bases. If every log in the problem already shares one base, simplify with the product, quotient and power rules instead. If the number is an exact power of the base, like log⁡232, just count the factors: 5.

Tip. Ask: Is the base something other than e or 10 that I must turn into a computable ratio of logs?

How to Recognize It

Before converting bases, look at the base of every log in the problem and at whether the answer should be a decimal, an exact value, or one simplified log.

  1. Is the base a number your calculator has no key for, with a decimal answer wanted?

    If yes, divide two logs of the same base: log⁡7100=ln⁡100ln⁡7≈2.37. If the base is already 10 or e, press that key; no conversion is needed.

  2. Is the number an exact power of the base, like log⁡464 or log⁡93?

    If yes, find the exponent by thinking: 43=64 gives 3, and 91/2=3 gives 12. The formula would still work, but an exact answer beats a calculator decimal.

  3. Do logs with different bases need to be combined in one expression?

    If yes, convert them to one base first; then the other log rules apply, as in log⁡23⋅log⁡38=ln⁡3ln⁡2⋅ln⁡8ln⁡3=log⁡28=3. Logs sharing a base need no conversion.

  4. Have the base and the number traded places, as when comparing log⁡25 with log⁡52?

    If yes, the two are reciprocals, log⁡ba=1log⁡ab: log⁡25≈2.32 and log⁡52≈0.43. Putting the base's log on top by mistake produces exactly this wrong reciprocal.

Change of Base Formula compared with Logarithm properties, Natural logarithm, and Power rule for logs

All four rows rewrite logarithms, so any of them can look like the right move. Ask whether the trouble is the base of the log, the inside of the log, or neither, because only a base problem calls for change of base.

Change of Base Formula

Meaning
Use this when you need a logarithm in a base your calculator cannot evaluate directly, or to compare logs across bases.
Key test
Is the base something other than e or 10 that I must turn into a computable ratio of logs?
Formula
log⁡bx=log⁡axlog⁡ab
Most commonly: log⁡bx=ln⁡xln⁡b or log⁡bx=log⁡10xlog⁡10b.
Example
Compute log⁡27 on a calculator.

Logarithm properties

Meaning
Expand or combine logs within one base; they do not switch the base.
Key test
Use to split a product or pull down a power, not to convert bases.
Formula
log⁡b(xy)=log⁡bx+log⁡by
Example
Expand log⁡2(4x)

Natural logarithm

Meaning
A specific base-e log; change-of-base often uses it as the intermediate base.
Key test
Use directly when the problem is already base e.
Formula
ln⁡x=log⁡ex
Example
ln⁡e3=3

Power rule for logs

Meaning
Brings an exponent to the front; sometimes confused as a way to change base, but it does not.
Key test
Use when the argument has an exponent.
Formula
log⁡b(xn)=nlog⁡bx
Example
log⁡28=3log⁡22

Formula & Notation

log⁡bx=log⁡axlog⁡ab
Most commonly: log⁡bx=ln⁡xln⁡b or log⁡bx=log⁡10xlog⁡10b.
log⁡bx=log⁡axlog⁡ab for any valid base a; in particular log⁡bx=ln⁡xln⁡b=log⁡10xlog⁡10b

How to read it: The formula works with any intermediate base a. The two most common choices are a=e (using ln⁡) and a=10 (using log⁡).

Worked Examples

Example 1 — Evaluate log base 2 of 7

Easy

Compute log⁡27 on a calculator.
Show the steps and the answer
  1. Estimate first: 22=4 and 23=8, so log⁡27 lies between 2 and 3, close to 3.

    A quick bracket will expose a flipped ratio, which would give about 0.36.

  2. Write log⁡27=ln⁡7ln⁡2.

    The number you take the log of, 7, goes on top; the base, 2, goes underneath.

  3. Evaluate: ln⁡7≈1.9459 and ln⁡2≈0.6931, so 1.94590.6931≈2.807.

    Use the same key, LN, for both; mixing LN on top with LOG underneath would break the ratio.

  4. Check: 22.807≈7.00.

    Raising the base to the answer must give back the original number 7.

Answer: log⁡27≈2.807

Takeaway: Divide the log of the number by the log of the base, and compare the result with a bracket of whole powers (4<7<8).

Example 2 — Same base, just expand

Standard

Simplify log⁡28+log⁡24 — do you change base?
Show the steps and the answer
  1. Notice that both logs already have base 2.

    Change of base is for switching bases; nothing here needs switching.

  2. Combine with the product rule: log⁡28+log⁡24=log⁡2(8⋅4)=log⁡232.

    Adding logs of the same base multiplies their arguments.

  3. Evaluate exactly: 25=32, so log⁡232=5.

    Since 32 is a whole power of 2, the answer is an integer and no calculator is needed.

  4. Cross-check term by term: log⁡28=3 and log⁡24=2, and 3+2=5.

    Each piece is a simple power of 2, which confirms the combined answer.

Answer: log⁡2(32)=5

Takeaway: When the logs share a base and the arguments are powers of it, the log properties give an exact answer; change of base would only turn it into a decimal.

Example 3 — Find the mistake: the ratio upside down

Application

Evaluate log⁡520. Marco types ln⁡5ln⁡20 and writes: "log⁡520≈0.537." Find the mistake and correct it.
Show the steps and the answer
  1. Estimate: 51=5 and 52=25, so log⁡520 must lie between 1 and 2.

    An answer of 0.537 would mean 50.537=20, but 50.537≈2.37.

  2. Find the error: Marco put the base on top.

    The formula is log⁡bx=ln⁡xln⁡b, number over base; his fraction computes log⁡205 instead.

  3. Recompute: ln⁡20ln⁡5=2.99571.6094≈1.861.

    With the number on top, the result lands between 1 and 2 as the estimate predicted.

  4. Check: 51.861≈20.0.

    The base raised to the answer returns the number.

Answer: log⁡520≈1.861

Takeaway: Flipping the ratio gives the reciprocal, log⁡205; notice 0.537×1.861≈1. Bracket the answer between whole powers before trusting the calculator.

Where You'll See It

  • Counting steps in a binary search

    Looking up a name in a sorted list of 1,000,000 by repeatedly halving it takes about log⁡21,000,000=ln⁡1,000,000ln⁡2=13.820.693≈19.9 halvings, so 20 comparisons. Computer scientists estimate search times this way.

  • Doubling time at 6% a year

    Money compounding at 6% a year doubles when 1.06t=2, so t=log⁡1.062=ln⁡2ln⁡1.06=0.69310.0583≈11.9 years. No calculator has a base-1.06 key, so the formula does the work.

  • Semitones between two musical notes

    Each semitone multiplies a note's frequency by 21/12, so the number of semitones from 440 Hz up to 660 Hz is 12log⁡2660440=12⋅ln⁡1.5ln⁡2≈12(0.585)≈7.0, the interval musicians call a perfect fifth.

Common Mistakes

  1. The slip: Flipping the ratio

    Instead: it is log⁡xlog⁡b (target over base), not base over target.

  2. The slip: Switching intermediate bases mid-problem

    Instead: use the same base a in numerator and denominator.

  3. The slip: Thinking the new base must be 10 or e

    Instead: any base works; those two are just the ones on the calculator.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Use change of base to find log⁡350 to three decimal places.

    Hint: The log of the argument goes on top, the log of the base below.

  2. Write log⁡832 as a ratio of base-2 logs, then simplify exactly.

    Hint: Both 8 and 32 are powers of 2.

  3. Find log⁡50.2 exactly, then check it with change of base.

    Hint: Write 0.2 as a power of 5.

  4. A population triples when 1.04t=3. Find t using change of base.

    Hint: First write t as a logarithm with base 1.04.

  5. You want to write 3log⁡2x as one logarithm. Change of base, or the power rule?

    Hint: Does anything about the base need to change?

  6. A student writes: "log⁡210=log⁡2log⁡10≈0.301." Correct the mistake.

    Hint: Estimate first: which power of 2 is close to 10?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Where does the change-of-base formula come from?

It takes three lines. Let y=log⁡bxy = \log_b x, which means by=xb^y = x. Take the natural log of both sides, ln⁡(by)=ln⁡x\ln(b^y) = \ln x, and the power rule turns the left side into yln⁡by\ln b. Divide by ln⁡b\ln b to get y=ln⁡xln⁡by = \frac{\ln x}{\ln b}. Nothing in the argument needed base ee, so the same steps with any other log give the general version.

How many digits does 2100 have?

A whole number with dd digits lies between 10d−110^{d - 1} and 10d10^d, so its base-10 log tells you dd. Here log⁡(2100)=100log⁡2≈30.10\log(2^{100}) = 100\log 2 \approx 30.10, so 21002^{100} is about 1030.110^{30.1} and has 31 digits. The same idea in base 2 counts binary digits: log⁡21000=ln⁡1000ln⁡2≈9.97\log_2 1000 = \frac{\ln 1000}{\ln 2} \approx 9.97, so 1000 written in binary takes 10 digits.

Why can't a log have base 1?

Every power of 1 is 1, so 1y=51^y = 5 has no solution and log⁡15\log_1 5 cannot exist. The change-of-base formula shows the same breakdown: ln⁡5ln⁡1\frac{\ln 5}{\ln 1} divides by ln⁡1=0\ln 1 = 0. Negative bases fail too, because (−2)y(-2)^y is not a real number when y=12y = \frac{1}{2}. That is why a log base must be positive and not equal to 1.

Why do computer scientists keep using log⁡2?

Because so many processes halve or double. Searching a sorted list of 1,000,000 names by checking the middle and throwing away half each time takes about log⁡21,000,000=ln⁡1,000,000ln⁡2≈19.9\log_2 1{,}000{,}000 = \frac{\ln 1{,}000{,}000}{\ln 2} \approx 19.9 steps, so 20 checks always suffice. Calculators rarely have a log⁡2\log_2 key, which makes change of base the everyday tool for this.

Learning Path

Change of Base Formula

You are here

You need Logarithm (a log is an exponent) and Natural Logarithm (the ln⁡ key and its inverse ex). Change of base adds one move: dividing two logs in a base you can compute gives a log in any base. It is used constantly in Solving Exponential Equations, where 5x=30 becomes x=ln⁡30ln⁡5≈2.11.

See Also