Category

Logarithms Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

What is a logarithm?

A logarithm answers one question: what exponent turns the base into this number? So log base 2 of 8 equals 3 simply because 2 raised to the 3rd power is 8. In short, a logarithm is the inverse of exponentiation, the inverse operation — it undoes a power the same way subtraction undoes addition.

log_b(x) = y ⟺ bʸ = x

Read that two-way arrow as "is the same as." The two statements 2³ = 8 and log₂(8) = 3 carry identical information written in different forms. This logarithm calculator works in exactly that spirit: type a number, pick a base, and it returns the exponent — plus the full working. The base b must be positive and not equal to 1, and the argument x must be greater than 0, because no power of a positive base ever produces zero or a negative result.

How to use this logarithm calculator

Getting an answer takes one tap. Enter a number, choose a base, and read the result with its step-by-step solution — no sign-up, no paywall.

  1. Enter the number. Type the argument x — the value you want the logarithm of (for example 50, 1000, or 7).
  2. Choose the base. Use a one-tap preset — 10 for the common log, e for the natural log (ln), or 2 for the binary log — or type any custom base into the base field.
  3. Read the result and steps. The answer appears instantly. Open the steps panel to see the change-of-base working, so you can copy the method straight into your homework.
How it is computed: every result is found with the change-of-base formula, log_b(x) = ln(x) ÷ ln(b), so each answer is fully auditable rather than a black box.

log vs ln vs log₂ — what's the difference?

The three logarithms you meet most often differ only by their base. "log" usually means base 10, "ln" always means base e (≈ 2.71828), and "log₂" means base 2. This natural log (ln) calculator and log base 2 calculator handle all of them from the same box. The table below is the quickest way to keep them straight.

NameNotationBaseCalculator key & typical use
Common loglog(x) or log₁₀(x)10log key — pH, decibels, scientific notation, Richter scale
Natural logln(x) or logₑ(x)e ≈ 2.71828ln key — calculus, growth/decay, continuous interest
Binary loglog₂(x)2change of base or log₂ preset — computing, information theory, Big-O
General loglog_b(x)any b > 0, b ≠ 1custom base field — any base you need
Heads up: "log" with no base shown means base 10 in most algebra and science. In calculus, many software tools and engineering texts, a bare "log" can mean base e — always check the context.

Logarithm rules (with worked examples)

Four logarithm rules do nearly all the work. Each turns a hard operation (multiplying, dividing, raising to a power) into an easier one (adding, subtracting, multiplying). Every example below is a real, verified calculation you can reproduce on the tool.

Product rule

The log of a product is the sum of the logs.

log_b(m · n) = log_b(m) + log_b(n)

Example: log(2 · 5) = log(10) = 1, and separately log(2) + log(5) = 0.30103 + 0.69897 = 1. The two routes agree.

Quotient rule

The log of a quotient is the difference of the logs.

log_b(m ÷ n) = log_b(m) − log_b(n)

Example: log₂(32 ÷ 4) = log₂(8) = 3, and separately log₂(32) − log₂(4) = 5 − 2 = 3. ✓

Power rule

A power inside the log comes out front as a multiplier.

log_b(mᵏ) = k · log_b(m)

Example: log₂(8) = log₂(2³) = 3 · log₂(2) = 3 · 1 = 3. The power rule is what lets you solve for an unknown exponent, since it pulls the variable down where you can isolate it.

Change of base rule

This is the engine of the calculator. To find a log in any base, divide two logs you can already compute (base 10 or base e). That is exactly what a change of base calculator does internally.

log_b(x) = log_c(x) ÷ log_c(b)

Take log₂(50) — a value no standard calculator has a direct key for. Convert it three ways and watch them all land on the same number:

All three give log₂(50) ≈ 5.6439. The base you divide through never changes the answer — only how convenient the arithmetic is.

How to solve logarithms without a calculator

When no calculator is handy, you can still pin a logarithm down by bracketing it between the two nearest exact powers of the base. The log must fall between those two whole numbers.

  1. Find the nearest powers. For log₂(50), list powers of 2 around 50: 2⁵ = 32 and 2⁶ = 64. Since 50 sits between 32 and 64, log₂(50) sits between 5 and 6.
  2. Estimate the position. 50 is a bit past the midpoint of 32 and 64, so the answer is a little above 5.5 — and indeed log₂(50) ≈ 5.64.
  3. Refine if needed. For more precision, use the change-of-base shortcut with logs you remember, or read values from a printed log table.
Tip: "nice" arguments are exact and need no estimation — log₂(64) = 6, log(1000) = 3, and ln(e) = 1 can all be read straight off the powers.

Solving logarithmic equations

To solve an equation with logs, condense both sides to a single log using the rules above, then rewrite in exponential form. Watch one carefully:

  1. Condense. log(x) + log(x − 3) = 1 becomes log[x(x − 3)] = 1 by the product rule.
  2. Switch to exponential form. A bare "log" is base 10, so x(x − 3) = 10¹ = 10.
  3. Solve the quadratic. Expand to x² − 3x − 10 = 0, which factors as (x − 5)(x + 2) = 0, giving x = 5 or x = −2. Need a hand here? Use the solve the resulting quadratic equation tool.
  4. Check the domain. x = −2 makes log(−2) undefined, so reject it. Only x = 5 survives — and log(5) + log(2) = log(10) = 1 confirms it.
Watch for extraneous solutions: always discard any answer that makes the argument of a log zero or negative. The algebra can produce values the logarithm itself forbids.

Real-world uses of logarithms

Logarithms compress huge ranges into readable scales, which is why they appear everywhere measurements span many orders of magnitude:

Antilogarithm (inverse log)

The antilog (or inverse log) reverses a logarithm: instead of asking for the exponent, you raise the base to a known result. If log_b(x) = y, then the antilog is x = bʸ. This is the same direction as the raise the base to a power operation.

antilog_b(y) = bʸ

Example: the base-10 antilog of 2.5 is 10²·⁵ ≈ 316.23. So if a log scale reads 2.5, the underlying quantity is about 316 — and feeding 316.23 back into a log base 10 returns 2.5, closing the loop.

Common mistakes

Mistake — splitting the log of a sumlog(a + b) is not log(a) + log(b). The product rule turns multiplication into addition, not addition into addition. There is no rule that simplifies the log of a sum.
Mistake — taking the log of zero or a negative numberThe domain is x > 0. log(0) and log(−4) are undefined because no exponent of a positive base yields zero or a negative value. Always check the argument stays positive.
Mistake — confusing log and ln"log" defaults to base 10 and "ln" is base e ≈ 2.71828. Plugging ln into a base-10 formula (or vice versa) silently changes the answer. Match the base to the problem.
Mistake — mishandling the power ruleIn log(mᵏ) the exponent applies to m only, giving k · log(m). That is different from (log m)ᵏ, where the whole logarithm is raised to a power. Keep the exponent on the right thing.
Mistake — keeping extraneous equation solutionsAfter solving a log equation, substitute each answer back. Any value that makes a log's argument zero or negative must be rejected, even though it satisfied the algebra.

Studying for AP Precalculus? Logarithmic and exponential functions are Unit 2 — 25–40% of the exam. See the 2027 score calculator or what changed for 2027.

Frequently asked questions