Find the logarithm of any positive number in base 10, base e, base 2 or any custom base, with the change-of-base steps shown, an inverse check, and a curve that shows where your point sits.
A logarithm answers an exponent question. Instead of asking "what is 10 cubed?", it asks the reverse: "10 to what power gives 1000?" The answer, 3, is written log10(1000) = 3. In general:
by = x means the same as y = logb(x)
b is the base · x is the number · y is the logarithm, the exponent that connects them
The logarithm is the inverse of exponentiation, in the same sense that subtraction is the inverse of addition. That one idea carries everything else on this page, including why logarithms turn multiplication into addition, why they compress huge ranges onto a page of graph paper, and why they show up wherever quantities grow by fixed percentages.
Any positive number except 1 can serve as a base, but three bases dominate practice:
Other bases appear when a problem supplies them. One useful anchor set worth memorizing: log3(81) = 4, because 3 × 3 × 3 × 3 = 81, and logb(b) = 1 and logb(1) = 0 for every valid base b.
Your calculator chip only computes natural logs; every other base is reached through the change-of-base formula:
logb(x) = ln(x) ÷ ln(b)
divide the natural log of the number by the natural log of the base, whatever the base is
Worked check: log3(81) = ln(81) ÷ ln(3) = 4.3944 ÷ 1.0986 = 4, exactly as counting the threes promises. The calculator above shows this division with your own numbers substituted, and then verifies the answer in reverse by computing by and confirming it lands back on x.
Three rules let a logarithm unwind multiplication, division and powers into simple arithmetic. Each is just the exponent laws wearing a different coat:
The common thread: whenever a quantity spans enormous ranges, or grows by fixed percentages, a logarithmic scale is the honest way to draw or describe it.
By long-standing convention, a bare log means base 10, and ln means base e. Calculators and programming languages mostly follow this, though some textbooks and programming contexts use log for the natural logarithm, so check which convention your course or tool uses before comparing answers. This calculator labels every base explicitly to avoid the ambiguity.
Because the logarithm asks "to what power must I raise the base to get 1?", and any positive base raised to the power 0 gives 1. So log(1) = 0 in every base at once, which is why the curve on the graph card always passes through the point (1, 0) no matter which base you enter.
A base of 1 raises to give 1 forever, so no exponent could ever produce a number other than 1 and the logarithm would have no answer. Negative bases swing between positive and negative values as the exponent changes, so the function is not consistently defined. Only bases greater than 0 and different from 1 give a clean, single-valued logarithm, which is what the calculator requires.
Use the change-of-base formula: divide the natural log of your number by the natural log of your base. For log base 3 of 81, compute ln(81) ÷ ln(3) = 4.3944 ÷ 1.0986 = 4. This works for any valid base because the ratio of the two natural logs carries the same information as the original logarithm.
Yes, whenever the argument is between 0 and 1. For example log(0.01) = -2, because 10 to the power -2 is 0.01. Negative logarithms are common in chemistry and signal processing; the curve on the graph card dips below the axis exactly there.
Only the base: log is base 10 and ln is base e, about 2.71828. They differ by a fixed factor, since ln(x) = log(x) ÷ log(e) ≈ log(x) ÷ 0.4343. Numbers that are round in one scale are not round in the other: log(100) = 2 while ln(100) ≈ 4.6052. Use log for orders of magnitude and ln for continuous growth, decay and calculus.
That is exactly what a logarithm computes: y = log base b of x. Enter the base and the target value here and the result is the exponent. For example, to learn how many doublings take 1 to 8, ask for log base 2 of 8, and the answer 3 says 2 × 2 × 2 = 8.
No. Every calculation runs in your browser. Nothing is stored or transmitted.