Logarithm Calculator: Log, Ln & Any Base Solver
Home › Calculators › Logarithm Calculator
Free • Browser-Based • No Sign-In

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.

Method: Direct evaluation with change-of-base computation and exponential-form verification.
Math Tool

Logarithm Calculator

Choose the calculation you need. Every result shows its verification step.

Enter a positive number (x > 0).
Enter a positive number (x > 0).
Base must be > 0 and ≠ 1.
Enter a positive number (x > 0).
Base must be > 0 and ≠ 1.
Enter a positive number (x > 0).
Base must be > 0 and ≠ 1.
Solves log_b(x) = c for x.
Result
5
log₂(32)
Verification
2^5 = 32
bʸ = x
Step-by-step
—
AI Citation Quick Answer

What Is a Logarithm Calculator?

Quick Answer: A logarithm answers one question: “to what power must I raise the base to get this number?” That is, logb(x) = y means exactly by = x. So log2(32) = 5 because 25 = 32, and log10(1000) = 3 because 103 = 1000.

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.

1. Log base 10 (common log)Enter x (must be > 0). The calculator returns log10(x) and shows the check 10result = x. Example: x = 1000 → log10(1000) = 3, checked by 103 = 1000.
2. Natural log (ln)Enter x (must be > 0). The calculator returns ln(x) and shows the check eresult = x. Example: x = e3 (≈ 20.0855) → ln(e3) = 3, checked by e3 = 20.0855.
3. Log of any baseEnter the base b (b > 0, b ≠ 1) and the argument x (> 0). The calculator computes logb(x) via the change-of-base formula ln(x)/ln(b). Example: base 2, x = 1000 → log2(1000) = ln(1000)/ln(2) ≈ 6.9078/0.6931 ≈ 9.9658.
4. Change of baseEnter b and x. The calculator shows each piece separately — ln(x), ln(b) — then the division, so you can see exactly where a rounded answer like 9.97 comes from.
5. Solve log equationsEnter the base b and the value c to solve logb(x) = c. The calculator converts to exponential form x = bc and shows the check. Example: log2(x) = 5 → x = 25 = 32, checked by log2(32) = 5.
  1. Pick the mode that matches your problem.
  2. Enter your numbers — invalid inputs are flagged as domain errors.
  3. Select Calculate to generate the result.
  4. Check the verification — every answer shows the by = x check.
Tip: enter the problem exactly as written. If the calculator flags a domain error, your input — not the calculator — needs fixing: no base may be 1 or negative, and the argument can never be zero or negative.

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)

PowerValueLog statement
212log2(2) = 1
238log2(8) = 3
2532log2(32) = 5
10110log10(10) = 1
102100log10(100) = 2
1031000log10(1000) = 3
e1e ≈ 2.71828ln(e) = 1
e3e3 ≈ 20.0855ln(e3) = 3
2−10.5log2(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

  1. Combine with the product rule: log2(x) + log2(x − 2) = log2(x(x − 2)). So log2(x(x − 2)) = 3.
  2. Convert to exponential form: x(x − 2) = 23 = 8.
  3. Solve the resulting quadratic: x2 − 2x − 8 = 0 → (x − 4)(x + 2) = 0, so x = 4 or x = −2.
  4. 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.
  5. Reject the impostor: x = −2 makes both arguments negative (log2(−2) is undefined), so it is extraneous. The only solution is x = 4.
Remember: The Logarithm Calculator’s equation mode performs this conversion and domain check automatically — it will never hand you an extraneous root as an answer.

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

Five modes, one pageCommon log, natural log, any base, change of base, and log-equation solving — no switching tools mid-homework.
Step-by-step, not just an answerEvery mode shows the conversion, the computation, and the verification (by = x), so you can follow the work.
Domain errors, not silent wrong answersInvalid inputs (log of 0, negative arguments, base 1) return a clear error message.
Free and instantNo sign-up, works on phones for homework on the go.

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).
AI Search & Featured Snippet Section

Quick Definitions

TermMeaning
Logarithmlogb(x) = the exponent y such that by = x; the inverse of an exponential.
BaseThe number b being raised to a power; must be positive and ≠ 1.
Common logarithmlog(x) — logarithm base 10; log(1000) = 3.
Natural logarithmln(x) — logarithm base e (≈ 2.71828); ln(e3) = 3.
AntilogarithmThe reverse operation: the antilog of y (base b) is by — used to solve logb(x) = c.
Change of baseThe formula logb(x) = ln(x) / ln(b) for evaluating logs of bases your calculator lacks.
FAQ

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).

Methodology

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).
Trust note: Standard logarithmic identities are applied exactly as stated above; every computed result is verified in exponential form (by = x) before it is displayed.
References

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
Scroll to Top