Logarithm Calculator
Any base, via the change-of-base identity.
Any base, via the change-of-base identity. A logarithm answers the question: what power gives this number.
10 for common logs, 2.71828 for natural.
log₍10₎(1,000)
3
10^3 = 1,000
Every logarithm is a rescaling of every other, so only one needs computing: log_b(x) = ln(x) ÷ ln(b). That change-of-base identity is why a calculator with just ln and log₁₀ can produce any base at all. A logarithm answers "what power gives this number" — here 10 raised to 3 returns 1,000.
How the Logarithm Calculator works
A logarithm answers the question: what power gives this number. Every logarithm is a rescaling of every other, so only one needs computing — log_b(x) = ln(x) ÷ ln(b). That identity is why a calculator with just ln and log₁₀ can produce any base at all.
Also known as: log calculator · natural log calculator · ln calculator · log base 2 calculator
Where to go next
The Logarithm question rarely arrives on its own. These are the ones that usually come with it:
- Exponent Calculator — Powers, including negative and fractional exponents.
- Exponential Growth Calculator — Growth or decay, with doubling time and half-life.
- Square Root Calculator — Any root, with the simplified surd where one exists.
- Percentage Calculator — Every common percentage question in one place.
Frequently asked questions
What is a logarithm?
The inverse of exponentiation. log₁₀(1000) = 3 because 10³ = 1000.
What is the difference between log and ln?
Base. 'log' usually means base 10 and 'ln' means base e, about 2.71828. Both are shown here alongside base 2.
What is the change-of-base formula?
log_b(x) = ln(x) ÷ ln(b). It lets any base be computed from natural logs alone, which is exactly what this page does.
Why can't I take the log of a negative number?
Because no real power of a positive base produces a negative result. The logarithm of a negative number exists only in complex numbers.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/logarithm-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Logarithm Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/logarithm-calculator" style="color:#64748b">Logarithm Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Exponent Calculator
Powers, including negative and fractional exponents.
OpenExponential Growth Calculator
Growth or decay, with doubling time and half-life.
OpenSquare Root Calculator
Any root, with the simplified surd where one exists.
OpenPercentage Calculator
Every common percentage question in one place.
Open