VerifySolveSolve a problem

Logarithm Calculator — exact where exact, proven every time

Type any logarithm — any base, natural log (ln) or common log (base 10) — and this logarithm calculator evaluates it with full steps: exact answers where the value is exactly representable, change-of-base steps otherwise, and a back-check that raises the base to the answer.

  • ✓100% free — no paywall, ever
  • ✓No sign-up, no app
  • ✓Every answer verified before you see it

In short

A logarithm asks: this base, to what power, gives that number? log₂(8) = 3 because 2³ = 8. This logarithm calculator works in any base — including ln (base e) and log (base 10) — gives exact answers when the value is exactly representable, shows change-of-base steps when it is not, and proves every answer by raising the base back to it.

Four rules carry every logarithm

The definition, change of base, and the two combining laws. A coefficient becomes an exponent (the power law), and the logarithm calculator applies all of them in the steps, so the method — not just the answer — is what you take away.

Definition

log⁡ba=c  ⟺  bc=a\log_b a = c \;\Longleftrightarrow\; b^c = a

Change of base

log⁡ba=ln⁡aln⁡b\log_b a = \frac{\ln a}{\ln b}

Product law

log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y

Quotient law

log⁡b ⁣(xy)=log⁡bx−log⁡by\log_b\!\left(\frac{x}{y}\right) = \log_b x - \log_b y

Worked examples — exact, natural log, approximate and combined

An exact power, a natural log that undoes e, a change-of-base approximation, and two logs combined by the product law. Each check below is the same exponentiation proof this logarithm calculator prints on every problem.

log₂(8)

  1. 1.Ask: 2 to what power is 8?
  2. 2.2³ = 8, so the power is 3 — exactly

3

Proof: 2³ = 8 ✓ — the base raised to the answer gives the argument back.

ln(e³)

  1. 1.ln is base e, and e³ is already a power of e
  2. 2.The natural log undoes e: ln(e³) = 3

3

Proof: e³ = e³ ✓ — exact, because the argument was written as a power of e.

log₂(10)

  1. 1.10 is not a power of 2, so change of base: log₂(10) = ln(10) / ln(2)
  2. 2.ln(10) ≈ 2.3026 and ln(2) ≈ 0.6931
  3. 3.2.3026 / 0.6931 ≈ 3.3219

≈ 3.3219

Proof: 2^3.3219 ≈ 10.0000 ✓ — matches to rounding (4 decimal places).

log₂(8) + log₂(4)

  1. 1.Same base, so the product law combines them: log₂(8 × 4) = log₂(32)
  2. 2.2⁵ = 32, so the power is 5 — exactly

5

Proof: log₂(8) = 3 and log₂(4) = 2, and 3 + 2 = 5 ✓ — each term checked, then the total.

Common mistakes — and how to dodge them

Reading log as base e

In school maths a bare log means base 10, and ln means base e — swapping them changes the answer completely: log(100) = 2, but ln(100) ≈ 4.6052. Write the base whenever it matters (log_2, log_10), and use ln only when you mean e. The keypad has separate log( and ln( keys so the two never get mixed up.

Taking the log of 0 or a negative

log(0) and log(−5) are undefined — no exponent of a positive base gives 0 or a negative number, so there is no answer to find. It is not zero, it is not an error in your algebra, it is undefined. This logarithm calculator refuses those inputs and names the rule, instead of printing a meaningless number.

Combining logs with different bases

The log laws only combine logarithms that share one base: log₂(8) + log₃(9) cannot merge into a single log, because the two terms answer questions about different bases. Evaluate each one separately instead. The logarithm calculator refuses mixed-base combinations and says so, rather than combining them wrongly.

Logarithm Calculator — questions

What is a logarithm, in plain words?

The power you raise the base to. log₂(8) = 3 because 2³ = 8 — the logarithm answers "this base, to what power, gives that number?" Every logarithm is a question about an exponent, and every answer can be checked by raising the base back to it.

How does this logarithm calculator verify its answer?

By the exponentiation back-check, computed and shown: the base is raised to the answer and must give the argument back — 2³ = 8 proves log₂(8) = 3. Exact answers get an exact check with integer or fraction powers; approximate answers get a numeric check with the tolerance stated. For combinations, each original term is checked too, so the contraction itself is audited, not just the final number.

What is ln, and what base does log use when no base is written?

ln is the natural logarithm, base e (≈ 2.71828): ln(e) = 1, ln(e³) = 3. A bare log with no base written means base 10, the school convention: log(100) = 2, log(1000) = 3. For any other base, write it after an underscore — log_2(8), log_0.5(4) — and this page treats ln and log as modes of the same tool, not separate calculators.

Why are some answers exact and others approximate?

An answer is exact only when the argument is an exact power of the base — log₂(8) = 3, log₄(8) = 3/2 — and the engine proves that with prime-exponent arithmetic, never by guessing from a decimal. Anything else, like log₂(10), is computed by change of base and labelled ≈ to 4 decimal places. An approximation is never dressed up as exact.

Why can I not take the log of 0 or a negative number?

Because no power of a positive base is ever 0 or negative: 2 raised to anything stays positive, so there is no exponent that gives −5 or 0. The logarithm is simply undefined there. This page refuses those inputs and says why, instead of inventing an answer.

Is the logarithm calculator free?

Yes — free, no sign-up, no app, full steps and verification included on every problem. If your problem has x inside a logarithm and an equals sign, it is an equation: the Logarithmic Equations Calculator solves those, with every root checked against the domain.

Keep solving

A note on honest use: VerifySolve is built for learning. Use the steps to understand the method, then close the tab and try one on your own — that is where the grade actually comes from. If your teacher or school has a policy on calculators, follow it.