Skip to main content
Mathovia

Algebra / Exponential & Logarithmic Functions

Change of Base Formula

Your calculator has two logarithm keys, log and ln, but logarithms come in every base. The change of base formula converts a logarithm in any base into a ratio of two logs your calculator can do — and it also turns awkward bases into friendly ones for exact answers.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

A logarithm can have any positive base except , but a calculator only knows two of them: base behind the key and base behind the key. To find or , you need a way to translate a logarithm from one base to another. That translation is the change of base formula, and it is also the step that finishes off almost every exponential equation you will solve.

Change of base formula: log base b of x equals log x over log b, which equals ln x over ln b
The change of base formula

The Change of Base Formula

For positive numbers , and , with and :

The new base can be anything, so choose the one your calculator has. With base or base :

To remember the arrangement: the argument goes on top, the old base goes on the bottom. The number that was “up” in stays up; the small subscript base drops to the denominator.

log base 2 of 10 rewritten as ln 10 over ln 2: the argument 10 moves to the numerator and the base 2 to the denominator
Argument on top, old base on the bottom

Why the Change of Base Formula Works

The proof is a single application of the power rule.

Let . In exponential form that is . Take of both sides:

The power rule brings down to the front:

Dividing by isolates , which was all along:

How to Change the Base of a Logarithm

  1. Write the argument’s logarithm in the numerator: (or ).
  2. Write the old base’s logarithm in the denominator: (or ).
  3. Evaluate both, then divide. Keep several decimal places until the final step.

For :

The answer makes sense: and , so the exponent that gives must be a little above .

Example 1: Evaluating Logarithms With Different Bases

ExpressionChange of baseResult (4 d.p.)
exactly

Two sanity checks are worth making every time. The sign: the log is negative when the argument and base are on opposite sides of , as in the last two rows. The size: the answer should sit between the two whole-number powers of the base that bracket the argument.

Changing to a Friendlier Base for Exact Answers

The formula is not only for calculators. If the base and the argument are both powers of the same number, changing to that number gives an exact fraction.

ExpressionChange to baseWorkExact value

Two Useful Consequences

Swapping base and argument gives the reciprocal. Choosing as the new base:

So and .

Logs chain together. Writing both factors over a common base, the middle cancels:

This is the identity to reach for when a problem multiplies logs with different bases.

Worked Example

Evaluate to four decimal places, and confirm that and give the same answer.

Step 1 — apply the formula with natural logs:

Step 2 — evaluate the natural logs:

Step 3 — repeat with common logs:

Step 4 — check the size: and , so a value just under is right, since is just under .

So , whichever key you use.

Common Mistakes to Avoid

  • Putting the base on top. . That gives , which is — the reciprocal.
  • Simplifying the fraction as a single log. is not and not . It is a quotient of two numbers; evaluate each and divide.
  • Mixing log and ln in one fraction. gives the wrong answer. Use the same logarithm on top and bottom.
  • Rounding too early. , but . Carry at least six decimal places until the final division.

Practice Problems

Work each one before opening the answer.

Problem 1. Evaluate to four decimal places.

Show answer

Step 1 — change to base :

Step 2 — evaluate and divide:

Answer:

Problem 2. Evaluate to four decimal places.

Show answer

Step 1 — change to base , since exactly:

Step 2 — divide:

Answer:

Problem 3. Find the exact value of .

Show answer

Step 1 — both and are powers of , so change to base :

Step 2 — evaluate the base-2 logs:

Answer:

Problem 4. Find the exact value of .

Show answer

Step 1 — change to base :

Step 2 — evaluate:

Answer:

Problem 5. Show that .

Show answer

Step 1 — write both factors with natural logs:

Step 2 — cancel :

Step 3 — :

Answer: the product is

Problem 6. Solve to four decimal places.

Show answer

Step 1 — rewrite in logarithmic form:

Step 2 — change of base:

Answer:

Problem 6 is a preview of the next step. The solving exponential equations lesson turns that one move — take a log, then change base if needed — into a method for any equation with the variable in the exponent.

Frequently Asked Questions

What is the change of base formula?+

It is , where is any new base you choose. In practice is or , giving . The argument goes on top and the old base goes on the bottom.

Does it matter whether I use log or ln in the change of base formula?+

No. Both give the same answer, as long as you use the same one in the numerator and the denominator. For example, . The ratio is the same because switching between and multiplies top and bottom by the same constant.

Why is log base b of a equal to 1 over log base a of b?+

Apply the change of base formula with base : , since . So swapping the base and the argument gives the reciprocal: and .

Related lessons