Change of Base Formula

Convert logarithms between different bases so you can evaluate them on a calculator or combine logarithms with different bases.

logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}

Solve a problem with Change of Base Formula

Type the problem. The solver will use Change of Base Formula where Change of Base Formula is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Change of Base Formula takes
aa
bb
xx
Change of Base Formula
SymbolMeaning
aaThe original base of the logarithm you want to evaluate; it must be a positive number other than 1, and choosing a base like 2 or 5 (which calculators cannot directly evaluate) is when you need change of base.
bbThe new base you are converting to, typically 10 (common logarithm) or ee (natural logarithm), because calculators have built-in functions for these bases and cannot evaluate other bases.
xxThe argument of the logarithm, meaning the number you are taking the logarithm of; it must be positive, because logax\log_a x is only defined for x>0x > 0, and zero or negative values make the formula undefined.

When to use it

Use this formula when your logarithm has a base that your calculator cannot evaluate directly, such as base 2 or base 5.

Level

Usually taught in: Algebra II · Appears on: ACT

Worked examples

1. Evaluate a logarithm with base 2

Problem

Evaluate log28\log_2 8 using the change of base formula.
  1. log28=log8log2\log_2 8 = \frac{\log 8}{\log 2}

    Apply the change of base formula with base 10 (common logarithm).

  2. log8=log23=3log2\log 8 = \log 2^3 = 3\log 2

    Recognize that 8=238 = 2^3 and use the power rule for logarithms to simplify.

  3. 3log2log2=3\frac{3\log 2}{\log 2} = 3

    Cancel the common factor log2\log 2 in the numerator and denominator.

Answer: 33

This example shows how change of base lets us evaluate a base-2 logarithm using base-10 logarithms. We can verify the answer by noting that 23=82^3 = 8, so log28=3\log_2 8 = 3 is correct.

2. Evaluate a logarithm with a negative result

Problem

Evaluate log5125\log_5 \frac{1}{25} using the change of base formula.
  1. log5125=log125log5\log_5 \frac{1}{25} = \frac{\log \frac{1}{25}}{\log 5}

    Apply the change of base formula with base 10.

  2. log125=log1log25\log \frac{1}{25} = \log 1 - \log 25

    Use the quotient rule for logarithms: log(A/B)=logAlogB\log(A/B) = \log A - \log B.

  3. log1log25=0log52\log 1 - \log 25 = 0 - \log 5^2

    Since log1=0\log 1 = 0 and 25=5225 = 5^2, substitute these values.

  4. log52=2log5-\log 5^2 = -2\log 5

    Apply the power rule for logarithms: log(an)=nloga\log(a^n) = n\log a.

  5. 2log5log5=2\frac{-2\log 5}{\log 5} = -2

    Cancel the common factor log5\log 5 in the numerator and denominator.

Answer: 2-2

This example shows that change of base handles negative results. We can verify this by checking that 52=152=1255^{-2} = \frac{1}{5^2} = \frac{1}{25}, confirming that log5125=2\log_5 \frac{1}{25} = -2.

3. Use change of base to solve an exponential problem at a bake sale

Problem

At a school bake sale, the temperature of fresh cookies follows T=100(12)tT = 100 \cdot \left(\frac{1}{2}\right)^t where TT is the temperature in degrees and tt is time in minutes. After how many minutes will the temperature drop to 12.512.5 degrees? Use the change of base formula to solve.
  1. 100(12)t=12.5100 \cdot \left(\frac{1}{2}\right)^t = 12.5

    Set up the equation with the target temperature.

  2. (12)t=0.125\left(\frac{1}{2}\right)^t = 0.125

    Divide both sides by 100.

  3. t=log1/20.125t = \log_{1/2} 0.125

    Take the logarithm base 12\frac{1}{2} of both sides to solve for tt.

  4. t=log0.125log0.5t = \frac{\log 0.125}{\log 0.5}

    Apply the change of base formula to convert to base 10, which the calculator can handle.

  5. log0.125=log23=3log2\log 0.125 = \log 2^{-3} = -3\log 2

    Since 0.125=18=230.125 = \frac{1}{8} = 2^{-3}, rewrite the logarithm and apply the power rule.

  6. log0.5=log21=log2\log 0.5 = \log 2^{-1} = -\log 2

    Since 0.5=12=210.5 = \frac{1}{2} = 2^{-1}, rewrite the logarithm and apply the power rule.

  7. t=3log2log2=3t = \frac{-3\log 2}{-\log 2} = 3

    Substitute and cancel the common factor log2\log 2 in the numerator and denominator.

Answer: t=3t = 3

The change of base formula is essential in this application because calculators do not have a built-in function for base 12\frac{1}{2}. By converting to base 10, we can use a standard calculator. We can verify: (12)3=18=0.125\left(\frac{1}{2}\right)^3 = \frac{1}{8} = 0.125 degrees, which matches the target.

Common mistakes

Where Change of Base Formula usually goes wrong
Answer came out wrong
logax=logbalogbx\log_a x = \frac{\log_b a}{\log_b x} (numerator and denominator flipped)
The correct formula is logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}, with xx in the numerator and aa in the denominator.
logax=logbxlogba\log_a x = \log_b x - \log_b a (using subtraction instead of division)
Always use division: logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}.
logax=logbxlogab\log_a x = \frac{\log_b x}{\log_a b} (using logab\log_a b in the denominator instead of logba\log_b a)
Make sure both the numerator and denominator have the same new base bb: logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}.
The mistakeWhy it is wrongThe fix
logax=logbalogbx\log_a x = \frac{\log_b a}{\log_b x} (numerator and denominator flipped)This gives the reciprocal of the correct answer and is backwards.The correct formula is logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}, with xx in the numerator and aa in the denominator.
logax=logbxlogba\log_a x = \log_b x - \log_b a (using subtraction instead of division)This confuses the quotient rule for logarithms with the change of base formula, and subtraction gives a completely different answer.Always use division: logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}.
logax=logbxlogab\log_a x = \frac{\log_b x}{\log_a b} (using logab\log_a b in the denominator instead of logba\log_b a)This swaps which base appears in which position, giving an incorrect transformation that does not actually convert the base.Make sure both the numerator and denominator have the same new base bb: logax=logbxlogba\log_a x = \frac{\log_b x}{\log_b a}.

Tips and when to use something else

  • If the argument and base are related by a whole-number power (for example, log28\log_2 8 or log327\log_3 27), try to solve without change of base by recognizing the power relationship—this is often faster than computing logarithms.
  • Use b=10b = 10 (common logarithm) or b=eb = e (natural logarithm) when converting, because these are the functions available on all calculators and in scientific computing software.
  • When you need to compare or combine logarithms with different bases, convert all of them to the same base using change of base, then apply the Product Rule for Logarithms or Quotient Rule for Logarithms to simplify.
  • Verify that the base aa satisfies a>0a > 0 and a1a \ne 1 before applying the formula; logarithms are undefined for other bases, and the formula will involve division by zero if you use a=1a = 1.

Frequently asked questions

When should I use change of base instead of evaluating the logarithm directly?
Use change of base when your logarithm base is not 10 or ee and you need a numerical answer. For bases 10 or ee, your calculator has built-in functions. For other bases, change of base is the only practical method for numerical evaluation. If you can recognize a power relationship (for example, log28=3\log_2 8 = 3 because 8=238 = 2^3), direct evaluation may be faster.
Why convert to base 10 or base ee specifically?
These two bases have built-in functions on every scientific calculator and in every programming language's standard library. Base 10 is the common logarithm (written log\log or log10\log_{10}), and base ee is the natural logarithm (written ln\ln or loge\log_e). Using either of these means your calculator can compute the answer with a single command.
Does it matter which base I choose for bb in the change of base formula?
Mathematically, no—the final numerical answer for logax\log_a x is the same regardless of which base bb you choose in the formula. However, choosing b=10b = 10 or b=eb = e is practical because calculators can evaluate these logarithms directly. Any other choice of bb requires computing two logarithms yourself, which defeats the purpose of the formula.
What happens if logba=0\log_b a = 0 in the change of base formula?
This creates division by zero, making the formula undefined. It occurs when a=1a = 1. Logarithms are never defined with base 1, so this case should never arise if you are working with valid logarithms. Always check that your base aa is positive and not equal to 1.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18