Free Online Logarithm Calculator, Natural Log, Log Base 10 and Any Base
Work out a logarithm in any base, including the natural log and log base ten, or go the other way from a logarithm back to the number. The answer comes with the power it represents written out, so you can check it, and the awkward cases of zero, one and negative numbers are explained rather than refused.
The sum runs in your browser. Nothing you type is sent anywhere.
📉 The logarithm
A logarithm answers one question: what power of the base gives this number?
How the answer was reached, and the check that follows from it.
| Step | What happens |
|---|
| When | Calculation | Actions |
|---|
Number formatting
Rounding only changes what you see. The sum itself always runs at full precision, so a rounded number never feeds into the next step.
Display
Full screen hides the page around the tool. Press Escape, or the button in the bar, to come back.
History
Your data
Settings, history and saved setups live in this browser and nowhere else. There is no account and no server, which also means clearing them here is final.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Work Out a Logarithm
Four steps, and the third is the one that makes it stick.
What to Know About Logarithms
What log means without a base, and why some inputs have no answer.
Key Features & Capabilities
What it does, and what it deliberately does not.
About Logarithms
A logarithm answers one question, and it is worth having the question in front of you: what power of the base gives this number? Log base ten of a thousand is three because ten cubed is a thousand. That is the whole idea, and every rule about logarithms follows from it. So the answer here always comes with the power written out, because the definition read back is more useful than the definition recalled.
The practical difficulty with logarithms is not the arithmetic, it is the notation. Write log with no base and three different fields will read it three different ways: base ten in school mathematics, base two in computing, and base e in most programming languages and in anything beyond school level. The answers are not close to each other. The logarithm of a thousand is three, or about nine point nine seven, or about six point nine one. A tool that prints log without saying which is inviting the mistake, so the base appears on every line here.
The second difficulty is the inputs that have no answer, and there are three of them. A negative number has no real logarithm, because no positive base raised to any real power comes out negative. Zero has none either, although the logarithm falls without limit as you approach zero, which is why people write minus infinity and why writing it is unhelpful: it looks like a number and will be treated like one in the next step. And base one has no logarithms at all, because one to any power is one. Returning infinity for these, which several calculators do, hands you something that will quietly poison whatever you do next.
The rest is making the result usable. A whole number answer is shown as a whole number, verified by raising the base back to it rather than by rounding and hoping. The natural, base ten and base two logarithms are given alongside your own base, since quoting more than one is common. And going backwards, from a logarithm to the number it came from, is the same page rather than a different tool, because it is the same relationship read in the other direction.
Frequently Asked Questions
Bases, natural logs, and the cases with no answer.
Every Other Math Tool
35 more tools in this set. All free, all in your browser.