Log Calculator
Calculate logarithms in any valid base, including common logarithms (base 10), natural logarithms (ln), and binary logarithms (base 2). View related logarithms, the antilog, and clear step-by-step working.
Calculate a logarithm
Antilog calculator
Find the original number when you know the base and logarithm result. If logb(x) = y, then x = by.
A logarithm answers: “What power must the base be raised to, to get this number?” For example, log₂(8) = 3 because 2³ = 8.
How to use this log calculator
- Enter a positive number in the Number field.
- Enter a valid base, or select log₁₀, log₂, or ln.
- Choose Calculate logarithm to see the result and related values.
- Read the change-of-base working or copy the result.
What is a logarithm?
A logarithm is the inverse of exponentiation. The statement logb(x) = y means that by = x. The base b must be positive and different from 1, and x must be positive for real-valued logarithms.
Common logarithms use base 10, natural logarithms use base e (approximately 2.71828), and binary logarithms use base 2.
Logarithm formula
For any valid base b and positive number x:
logb(x) = ln(x) ÷ ln(b)
This is called the change-of-base formula. For example, log₂(8) = ln(8) ÷ ln(2) = 3.
Common logarithm rules
- Product: logb(xy) = logb(x) + logb(y)
- Quotient: logb(x/y) = logb(x) − logb(y)
- Power: logb(xn) = n logb(x)
- Log of 1: logb(1) = 0
- Log of the base: logb(b) = 1
Frequently asked questions
What does log mean on a calculator?
Unless another base is specified, log usually means the common logarithm with base 10. The ln button means natural logarithm with base e.
How do I calculate a logarithm with any base?
Use the change-of-base formula: logb(x) = ln(x) / ln(b), where x is positive and b is positive but not equal to 1.
Why can't I calculate the logarithm of zero or a negative number?
In the real number system, no real power of a positive base produces zero or a negative number. Therefore, the real logarithm is undefined for these inputs.
What is the difference between log and ln?
They use different bases. log usually uses base 10, while ln uses base e, approximately 2.71828.
What is an antilogarithm?
The antilogarithm reverses a logarithm. If logb(x) = y, then the antilog is x = by.