Log Calculator
This log calculator finds the logarithm of any number in any base. Type a number, pick base 10, e, or 2, or enter your own, and you'll get the result along with the common log, the natural log, and the base-2 log together. It uses the change-of-base formula under the hood. Everything updates as you type, so it's quick for algebra, calculus, or computer science. It's free and runs in your browser, so nothing you enter leaves your device.
- Any base
- Natural log
- Log base 10
- Log base 2
- Change of base
Last updated June 17, 2026 Change-of-base Reviewed by the Calcowa team
Enter a number above zero and a base above zero that isn't 1.
The number must be positive, and the base must be positive and not 1. Tap a chip to set base 10, e, or 2. The result is the power the base is raised to in order to reach the number.
How do you calculate a logarithm?
A logarithm is the reverse of raising to a power. It answers one question: what exponent turns the base into your number? So log base 10 of 100 is 2, because 10 to the power 2 is 100, and log base 2 of 8 is 3, because 2 cubed is 8. The base is the number being raised, and the answer is the exponent. Three bases come up the most: base 10, the common log written just as log; base e, the natural log written ln, where e is about 2.71828; and base 2, which computing leans on. To find a log in any other base, you use the change-of-base formula, which says log base b of x equals the natural log of x divided by the natural log of b. The two logs on top and bottom can be in any base, so long as they match, which is how a calculator that only knows ln can handle base 7 or base 1.5. This tool applies that formula, so it'll give you the log in whatever base you type, and it shows the common, natural, and base-2 logs side by side so you don't have to run them separately.
Working out a log, step by step
Here's the routine for log base 2 of 8, and it's just three steps:
- 1
Enter the numberType 8 as the number you want the log of.
- 2
Choose the baseTap base 2, since that's the log you want.
- 3
Read the result8 is 2 cubed, so log base 2 of 8 is 3.
Common logarithm values
Here are the common log and natural log of a few numbers. You'll notice log base 10 of a power of ten is just the number of zeros.
| Number | log base 10 | ln (base e) |
|---|---|---|
| 1 | 0 | 0 |
| 10 | 1 | 2.303 |
| 100 | 2 | 4.605 |
| 1,000 | 3 | 6.908 |
| 1,000,000 | 6 | 13.816 |
Frequently asked questions
You type a number and choose a base, and it returns the logarithm using the change-of-base rule, dividing the natural log of your number by the natural log of the base. It also shows the three logs people use most, base 10, natural, and base 2, at the same time. Everything runs in your browser, so you'll see the result the moment you type, and nothing you enter leaves your device. Tap a base chip to switch quickly.
A logarithm answers the question: what power do I raise the base to in order to get this number? So log base 10 of 100 is 2, because 10 squared is 100. For any base, you can use the change-of-base formula: the log equals the natural log of the number divided by the natural log of the base. That's exactly what this tool does, so it'll handle base 7 or base 1.5 just as easily as the common bases.
They're both logarithms, just with different bases. Log usually means base 10, the common logarithm, written log without a subscript in everyday math. Ln means the natural logarithm, base e, where e is about 2.71828, and it shows up all over calculus and growth problems. There's also log base 2, common in computing. This tool shows all three at once, plus whatever custom base you enter, so you don't have to convert between them.
It lets you find a log in any base using a calculator that only does base 10 or base e. The rule is that log base b of x equals log of x divided by log of b, where those two logs can be in any single base you like, as long as they match. So log base 2 of 8 is ln 8 over ln 2, which is 3. It's the trick behind this tool, and it's why any base works here.
Because you can't raise a positive base to any real power and land on zero or a negative number, so the logarithm of zero or a negative isn't defined in the real numbers. As the number shrinks toward zero the log heads to negative infinity, and at exactly zero there's no answer. The base also has to be positive and not equal to 1, since 1 raised to any power is always 1 and could never reach a different number.
Yes, it's completely free, with no sign-up, and it runs right in your browser, so nothing you enter leaves your device. Type a number, pick or type a base, and read the logarithm with the common, natural, and binary logs beside it. Bookmark it for algebra, calculus, chemistry, or computer science homework, and you'll have the change-of-base formula and the answer together whenever you need them.
Related tools
More math tools.
Percentages, algebra, and more.
Exponent CalculatorRaise any base to a power.
Permutation & CombinationnPr and nCr with steps.
Working with exponents?
Find the log above, or go the other way with the exponent tool.