Logarithm Change of Base Calculator

Calculate a logarithm in any valid base by converting it to a ratio of natural logarithms.

Enter your values

How it works

Enter a positive number and a positive base other than 1. The result is ln(number) divided by ln(base), equivalent to log10(number) divided by log10(base).

Worked example

The logarithm base 2 of 8 is ln(8) divided by ln(2), which equals 3.

Scope and local notes

This is a unit-free mathematical calculation, so no US-specific conversion is needed. Enter strictly positive values and avoid base 1; scientific notation is useful for very large or small numbers.

Frequently asked questions

Why can’t the base be 1?

A base of 1 makes ln(base) zero, so the change-of-base denominator is undefined.

Can the result be negative?

Yes. A positive number below 1 has a negative logarithm for a base above 1; bases between 0 and 1 reverse that sign behavior.