Logarithm Calculator 2026 – Log, Ln & Any Base Solver
Evaluate common logarithms, natural logs, and logs of any base — apply the change-of-base formula and solve log equations, all step by step in your browser.
Logarithm Calculator
Choose the calculation you need. Every result shows its verification step.
What Is a Logarithm Calculator?
The argument of a logarithm must be positive — log(0) and the log of any negative number are undefined. Calcrio’s free Logarithm Calculator evaluates log base 10, natural log (ln), logs of any base, applies the change-of-base formula, and solves log equations like log2(x) = 5 step by step.
How to Use the Logarithm Calculator
Pick the mode that matches your problem, then enter your numbers. Every result shows its verification step so you can trust the answer.
- Pick the mode that matches your problem.
- Enter your numbers — invalid inputs are flagged as domain errors.
- Select Calculate to generate the result.
- Check the verification — every answer shows the by = x check.
What Is a Logarithm?
A logarithm is the inverse of an exponential: logb(x) is the exponent you must put on the base b to get x. Written as a definition: logb(x) = y ⟺ by = x (with b > 0, b ≠ 1, and x > 0).
Read log2(32) = 5 as “log base 2 of 32 equals 5”, because 2 raised to the 5th power is 32. Two bases appear constantly, so they get their own names and buttons:
- Common logarithm — written log(x) with no base shown, always base 10. log(1000) = 3.
- Natural logarithm — written ln(x), always base e (≈ 2.71828). ln(e3) = 3.
Logarithms are everywhere in the real world: the pH scale of chemistry is −log10 of hydrogen-ion concentration, the Richter scale for earthquakes is a base-10 logarithm of wave amplitude, sound is measured in decibels (a logarithmic unit), and compound interest, population growth, and radioactive decay all solve with logarithms.
Worked examples (exact numbers, verified)
- log2(32) = 5, because 25 = 2 × 2 × 2 × 2 × 2 = 32.
- log10(1000) = 3, because 103 = 1000.
- ln(e3) = 3, by the inverse relationship ln(ex) = x.
- log5(125) = 3, because 53 = 125.
- log2(x) = 5 → x = 32: convert to exponential form x = 25 = 32, then check log2(32) = 5.
Powers and their logarithms (exact values)
| Power | Value | Log statement |
|---|---|---|
| 21 | 2 | log2(2) = 1 |
| 23 | 8 | log2(8) = 3 |
| 25 | 32 | log2(32) = 5 |
| 101 | 10 | log10(10) = 1 |
| 102 | 100 | log10(100) = 2 |
| 103 | 1000 | log10(1000) = 3 |
| e1 | e ≈ 2.71828 | ln(e) = 1 |
| e3 | e3 ≈ 20.0855 | ln(e3) = 3 |
| 2−1 | 0.5 | log2(0.5) = −1 |
Step-by-Step: Solving a Log Equation (and the Domain Trap)
The method is always: combine the logs into one, convert to exponential form, solve, then check the domain. Here is a classic exam question that punishes anyone who skips the last step:
Solve log2(x) + log2(x − 2) = 3
- Combine with the product rule: log2(x) + log2(x − 2) = log2(x(x − 2)). So log2(x(x − 2)) = 3.
- Convert to exponential form: x(x − 2) = 23 = 8.
- Solve the resulting quadratic: x2 − 2x − 8 = 0 → (x − 4)(x + 2) = 0, so x = 4 or x = −2.
- Check the domain — this is the trap. A logarithm’s argument must be positive. For log2(x) we need x > 0; for log2(x − 2) we need x > 2.
- Reject the impostor: x = −2 makes both arguments negative (log2(−2) is undefined), so it is extraneous. The only solution is x = 4.
Common Mistakes When Using Logarithms
The domain trap
Accepting x = −2 as a solution to log2(x) + log2(x − 2) = 3. Logarithms need positive arguments, so any “solution” that makes an argument zero or negative is extraneous. Check the domain before circling your answer.
Taking log(0) or log of a negative
logb(x) is undefined for x ≤ 0 — there is no exponent that makes a positive base equal 0 or a negative number. If your calculator shows an error here, the input is wrong, not the calculator.
Confusing ln with log
ln is base e (≈ 2.71828); a bare “log” on most calculators and textbooks is base 10. ln(10) ≈ 2.303, but log10(10) = 1 — mixing them up wrecks the answer.
Splitting log of a sum
log(x + y) is not log(x) + log(y). The sum rule works only on multiplication: log(xy) = log(x) + log(y). This is one of the most-tested errors in algebra exams.
Wrong change-of-base direction
logb(x) = ln(x)/ln(b), not ln(b)/ln(x). For log2(1000): 6.9078 ÷ 0.6931 ≈ 9.97 — flipping the division gives 0.1, which is obviously wrong.
Forgetting b ≠ 1
A logarithm base 1 does not exist (1y is always 1, so it can never produce x). Any base of 1 is a domain error, just like a non-positive argument.
Benefits & Limitations
Benefits
- Five modes, one page: common log, natural log, any base, change of base, and log-equation solving — no switching tools mid-homework.
- Step-by-step, not just an answer: every mode shows the conversion, the computation, and the verification (by = x), so you can follow the work.
- Domain errors, not silent wrong answers: invalid inputs (log of 0, negative arguments, base 1) return a clear error message.
- Free and instant: no sign-up, works on phones for homework on the go.
Limitations
- Change-of-base results are decimal approximations (e.g. 9.9658 for log2(1000)) because most logarithms are irrational; the calculator rounds for display.
- It evaluates and solves standard log forms — it is not a full computer algebra system and does not graph logarithmic functions.
- Like any calculator, it computes what you enter: it cannot fix a misread problem, so double-check which base your question uses (ln vs. log).
Quick Definitions
| Term | Meaning |
|---|---|
| Logarithm | logb(x) = the exponent y such that by = x; the inverse of an exponential. |
| Base | The number b being raised to a power; must be positive and ≠ 1. |
| Common logarithm | log(x) — logarithm base 10; log(1000) = 3. |
| Natural logarithm | ln(x) — logarithm base e (≈ 2.71828); ln(e3) = 3. |
| Antilogarithm | The reverse operation: the antilog of y (base b) is by — used to solve logb(x) = c. |
| Change of base | The formula logb(x) = ln(x) / ln(b) for evaluating logs of bases your calculator lacks. |
Frequently Asked Questions
What is a logarithm, in simple terms?
A logarithm is the answer to “what power do I need?” logb(x) = y means by = x. For example, log2(32) = 5 because 25 = 32. It is the inverse operation of raising a number to a power.
What is the difference between log and ln?
“log” without a base written means base 10 (the common logarithm); “ln” means base e, about 2.71828 (the natural logarithm). So log(100) = 2 but ln(100) ≈ 4.605. Always check which base your problem expects.
Can you take the log of 0 or a negative number?
No — both are undefined. There is no exponent y that makes a positive base equal 0 or a negative number, so logb(x) only exists for x > 0 (with b > 0, b ≠ 1). This is the domain rule behind the classic exam trap.
How do you solve log2(x) = 5?
Convert to exponential form: x = 25 = 32. Then verify: log2(32) = 5 because 25 = 32. In general, logb(x) = c solves as x = bc — exactly what the calculator’s equation mode does.
What is the change of base formula?
logb(x) = ln(x) / ln(b) (any second base works, not just e). It lets you evaluate bases like 2 on a calculator that only has log and ln: log2(1000) = ln(1000)/ln(2) ≈ 6.9078/0.6931 ≈ 9.97.
Where are logarithms used in real life?
Everywhere: pH in chemistry (−log10 of hydrogen-ion concentration), the Richter earthquake scale and decibels (both logarithmic), compound interest and loan formulas, population growth, and algorithm analysis in computer science (binary search is “log base 2” fast).
Related Math Tools
Logarithm Calculator Methodology
Every result on this page follows directly from the definition of the logarithm:
- Definition: logb(x) = y ⟺ by = x, with b > 0, b ≠ 1, x > 0.
- Change of base: logb(x) = ln(x) / ln(b) = log10(x) / log10(b). Verified: log2(1000) = 6.907755/0.693147 ≈ 9.9658.
- Product rule: logb(xy) = logb(x) + logb(y). Used to combine log2(x) + log2(x − 2) = log2(x(x − 2)).
- Quotient rule: logb(x/y) = logb(x) − logb(y).
- Power rule: logb(xn) = n · logb(x).
- Inverse properties: b(logb(x)) = x and logb(bx) = x — the calculator uses these for its verification step.
- Domain check: before reporting any solution, each argument must satisfy x > 0 and the base must satisfy b > 0, b ≠ 1; values failing this are rejected as extraneous (the x = −2 case in the worked example).
Mathematical References
Try the Free Logarithm Calculator
Evaluate common logs, natural logs, and logs of any base, apply the change of base formula, and solve log equations step by step — free, right here on this page.
Use Logarithm Calculator