Logarithm Calculator
Find the logarithm of a number in base 10, base e (ln), base 2 or any base you choose.
- Check
- ln(x)
- log₁₀(x)
- log₂(x)
What a logarithm is
A logarithm answers the question “what power do I raise the base to, to get this number?” Because 10³ = 1,000, the logarithm of 1,000 in base 10 is 3. In symbols: if bʸ = x then logb(x) = y. Logarithms are the reverse of exponents.
The three bases you will see most
- Base 10 (log): used in science for scales such as pH, decibels and the Richter scale.
- Base e (ln): the natural logarithm, where e ≈ 2.71828. It appears whenever growth is continuous — compound interest, population models, radioactive decay.
- Base 2 (log₂): the language of computers. log₂(1,024) = 10, because 1,024 is 2¹⁰.
Change of base
Any logarithm can be found from natural logs (or base-10 logs) with
log_b(x) = ln(x) ÷ ln(b)
Example: log₅(125) = ln(125) ÷ ln(5) = 4.8283 ÷ 1.6094 = 3. Check: 5³ = 125.
Laws of logarithms
- log(a × b) = log(a) + log(b)
- log(a ÷ b) = log(a) − log(b)
- log(aⁿ) = n × log(a)
- logb(1) = 0 and logb(b) = 1
These laws are why logarithms were once used to multiply large numbers by hand: adding logs is far easier than multiplying.
Frequently asked questions
What is the difference between log and ln?
log usually means base 10 and ln means base e (about 2.718). Some textbooks and programming languages use log for the natural log, so check the context.
Can I take the log of a negative number or zero?
Not with real numbers. A positive base raised to any power is always positive, so log(x) is only defined for x greater than 0.
What is an antilog?
The reverse of a log. The antilog of 3 in base 10 is 10³ = 1,000. Use the exponent calculator to find antilogs.
Last reviewed:
