Enter your values
Pick a mode, then enter the values. The calculator checks the domain rules automatically: logs require x > 0 and a base b > 0 with b ≠ 1.
This free Logarithm Calculator helps you compute logb(x) for any base, plus one-click ln(x) (base e) and log10(x). It also supports reverse problems (solve for x or the base) and shows clean steps you can screenshot. Everything runs locally in your browser — no signup.
Pick a mode, then enter the values. The calculator checks the domain rules automatically: logs require x > 0 and a base b > 0 with b ≠ 1.
A logarithm is the inverse operation of exponentiation. If exponentiation answers “What is b raised to the power y?”, logarithms answer the reverse question: “What power y gives me the number x when I raise b to it?”
These two statements are exactly the same relationship written in two different “languages.” That’s why logs are so useful: they convert multiplication into addition, turn exponent problems into simpler linear relationships, and compress huge ranges of numbers (which is why scientific scales like pH, decibels, and Richter-like scales feel natural).
The product/quotient rules are why logarithms show up in scientific notation and “orders of magnitude” reasoning. Multiplying large numbers is hard; adding is easy. Logs let you “pull exponents down” and do arithmetic on them.
Most calculators have built-in ln and log10. To compute logb(x) for an arbitrary base b, you use:
This page uses that same idea internally (with careful validation) and then formats the steps so you can see the reasoning. That’s also why base b cannot be 1: ln(1) = 0, and dividing by 0 breaks the formula.
Compute log10(1000). Ask: “10 to what power equals 1000?” Because 103 = 1000, the answer is 3.
Compute ln(e2). Logs undo exponentials: ln(e2) = 2. In general, ln(ey) = y.
Compute log2(32). Since 25 = 32, we get 5. This shows up in questions about doubling: “How many doublings to reach 32?” Answer: five doublings.
Compute log3(50). This is not a “nice” integer. Use change-of-base: log3(50) = ln(50) / ln(3). The calculator will display an approximate decimal value and the steps that got you there.
Suppose log10(x) = 4. Convert back to exponent form: 104 = x, so x = 10000. This is exactly what the “Solve for x in b^y = x” mode does.
Suppose you know b3 = 64. Solve for b: take the cube root: b = 641/3 = 4. In general, if by = x, then b = x1/y (when y ≠ 0 and x > 0).
The calculator follows the same logic you would write on paper — it just does it faster and formats it cleanly. Here’s the exact flow:
After calculation, the “Steps” box prints the formula you used, then substitutes the actual numbers, and finally shows the computed result (rounded for readability, while retaining more precision internally). That makes it perfect for quick studying — you see the structure, not just the answer.
People love “I just solved this in 2 seconds” screenshots. The share buttons generate a short text summary (including your mode and result), plus a link back to this page — which is the simplest, cleanest kind of virality.
ln(x) means log base e. Some textbooks use log(x) to mean base 10, while others use it to mean base e. This calculator avoids confusion by letting you set the base explicitly and giving one-click buttons for base 10 and base e.
Because 1y = 1 for every y. There’s no way to uniquely solve “what exponent gives x?” unless x is 1 — it becomes ambiguous. Also, change-of-base uses ln(b), and ln(1) = 0, which would cause division by zero.
For real-number logarithms, the input must be positive. Negative and zero inputs require complex numbers (advanced math beyond most algebra courses). If you need complex logs, you’ll want a dedicated CAS tool.
Yes. If 0 < x < 1 and b > 1, then logb(x) is negative. Example: log10(0.01) = -2 because 10-2 = 0.01.
For homework, match your class instructions. For most practical use, 4–8 decimal places is plenty. This calculator prints a readable value and keeps more precision internally for consistent steps.
Everywhere that scales multiplicatively: sound (decibels), acidity (pH), earthquakes, growth rates, and many “how many times bigger?” comparisons. In finance, logs appear in continuous growth and log-returns; in science, they simplify exponential relationships.
Quick jumps (pulled from the Math & Conversions category):
If you want a faster “combo” workflow, pair this with the Exponents Calculator: log solves for the exponent; exponent solves for the value. That’s the same relationship from both sides.