Change of Base Formula Calculator

Evaluate a logarithm in any valid base using common, natural, or custom logarithms.

Convert a Logarithm's Base
Enter the argument, target base, and a convenient working base.

About the Change of Base Formula

The change of base formula rewrites a logarithm in one base as a quotient of logarithms in another base. For a positive number x and valid bases a and b, log base b of x equals log base a of x divided by log base a of b. This calculator performs that conversion and evaluates the final logarithm while showing the numerator and denominator used. A logarithm answers an exponent question. If log base b of x equals y, then raising b to the power y produces x. Many calculators provide dedicated buttons only for base 10, called the common logarithm, and base e, called the natural logarithm. The change of base formula makes those functions sufficient for evaluating logarithms in base 2, base 3, or any other valid custom base. The formula works because logarithms preserve exponent relationships. Starting with x = b raised to y, take logarithms in working base a on both sides. The power rule moves y in front of the logarithm, giving log base a of x = y times log base a of b. Dividing by log base a of b isolates y and produces the change of base quotient. The chosen working base cancels, so every valid working base gives the same final answer apart from tiny floating-point rounding differences. Logarithms require domain restrictions. The number x must be greater than zero. Both the target base and working base must be positive and cannot equal one. A base of one is invalid because every power of one is still one, so it cannot represent general exponential growth or decay. Bases between zero and one are valid and produce decreasing exponential functions. Change of base calculations are common in algebra, computer science, information theory, chemistry, finance, and engineering. Base 2 measures binary growth and information, base 10 describes decimal orders of magnitude, and base e appears naturally in continuous growth. Use a working base available on your calculator, verify all domain conditions, and keep several decimal places during intermediate steps to avoid unnecessary rounding error.

Change of Base Examples

Each example divides two logarithms taken in the same working base.

ExpressionResultExplanation
log base 2 of 83Two raised to the third power is eight.
log base 10 of 10003Ten raised to the third power is one thousand.
log base 4 of 20.5Four raised to one half is two.

How to Use the Change of Base Formula

  1. Enter the positive number inside the logarithm.
  2. Enter the target base whose logarithm you want to evaluate.
  3. Choose any valid working base, such as 10 or 2.
  4. Select Calculate Logarithm to evaluate the quotient.

Change of Base FAQ

What is the change of base formula?

Divide the logarithm of the number by the logarithm of the target base, taking both logs in one working base. The quotient equals the original logarithm.

Does the working base change the answer?

No, every valid working base yields the same mathematical value. Only insignificant rounding differences may appear in decimal computation.

Why can a logarithm base not equal one?

Every power of one equals one, so base one cannot encode different input values. Its logarithm function is therefore undefined.

Can a logarithm base be between zero and one?

Yes, a positive base below one is valid. Its logarithm is decreasing and may reverse the sign patterns familiar from bases greater than one.

Can I calculate a logarithm of zero or a negative number?

Not within the real numbers, because positive real bases raised to real powers remain positive. Complex logarithms require additional definitions beyond this calculator.