Logarithm Calculator
Find the logarithm of a number to any base, or recover the number from its logarithm.
Enter your values and press Calculate to see the result and the working.
Formula used
Rearranged forms
Variables
- b Base
- The number being raised to a power
- y Logarithm
- The exponent needed to reach the number
What does this calculator do?
A logarithm answers one question: "to what power must I raise the base to get this number?" The log of 1000 to base 10 is 3, because 10³ = 1000.
When would you use it?
When working with quantities spanning huge ranges (pH, decibels, earthquake magnitude), or computing how long compound growth needs to reach a target.
How the formula works
A logarithm is the exact inverse of exponentiation, just as subtraction inverts addition. The relation b^y = x can be rewritten y = log_b(x); both describe the same fact from opposite directions.
Its most useful property is turning multiplication into addition: log(a × b) = log a + log b. That property is why logarithmic scales exist — they compress enormous ranges into readable ones.
Zero and negative numbers have no logarithm, because no exponent makes a positive base equal zero or a negative value.
What does the result mean?
The value tells you how many "doublings" — or scalings — are needed. Log base 2 of 8 is 3, meaning three doublings take you from 1 to 8. On a base-10 scale, each step of one means a tenfold change.
Common mistakes
Mixing up log (base 10) with ln (base e) is extremely common and gives quite different numbers. Another is assuming the log of a sum equals the sum of logs — the property applies to products, not sums.
Worked example
A common logarithm
What is log base 10 of 1000?
A binary logarithm
How many doublings take 1 to 1024?