Skip to content
Calixo

Logarithm Calculator

Find the logarithm of a number to any base — the mathematical inverse of exponentiation, used across science, engineering, and finance.

Inputs

Paste this into any page — the widget stays live and updates automatically as this calculator improves. Using WordPress or Notion? See the embed guide.

Saved Scenarios

— select 2+ to compare
Inputs updated · Results recalculated · Just now

Result

2.0000

Spark says

How it's calculated
Mathematical study scene with open book, graph paper, and pen for learning and homework.
Photo by Lum3n on Pexels
Hand writing mathematical equations on a chalkboard in a classroom setting.
Photo by Monstera Production on Pexels

Formula

logb(x)=ln(x)ln(b)\log_b(x) = \dfrac{\ln(x)}{\ln(b)}
x
— The number
b
— The base

What is the Logarithm Calculator?

A logarithm answers the question: to what power must the base be raised to produce this number? This calculator computes it for any base using the change-of-base formula.

Use this when solving a logarithm problem for coursework, working through a formula that requires converting between exponential and logarithmic form, or computing a logarithm in a base your calculator doesn't natively support.

How to use it

  1. 1 Enter the number.
  2. 2 Enter the base.

Understanding Logarithm Calculator

A logarithm answers a specific, precise question: to what power must a given base be raised to produce a given number? This is the exact inverse of what an exponent calculation does — where exponentiation starts with a base and a power and finds the resulting number, a logarithm starts with the base and the resulting number and finds the power that connects them. Understanding this inverse relationship is the single most useful mental model for logarithms, far more useful than memorizing formula manipulation rules without understanding what question they're actually answering.

The specific base matters enormously for a logarithm's numerical result, even though the underlying concept (finding an exponent) stays the same regardless of base. Base-10 logarithms (often written simply as 'log') answer 'what power of 10 gives this number,' and are historically significant because they align naturally with the decimal number system — before electronic calculators, base-10 logarithm tables were a standard tool for simplifying multiplication and division into addition and subtraction, a genuinely important practical application that predates most other uses of logarithms in everyday computation. Natural logarithms (written 'ln,' using the mathematical constant e as their base) show up pervasively throughout calculus, continuous compound growth and decay formulas, and much of higher mathematics, specifically because e has unique properties that make calculus operations (derivatives and integrals) on exponential and logarithmic functions come out especially clean when e is the base — a mathematical convenience rather than an arbitrary choice.

The change-of-base formula this calculator relies on — dividing the natural log of a number by the natural log of the desired base — exists specifically to solve a practical problem: most calculators and programming environments natively support only a couple of specific logarithm bases (commonly base 10 and base e), but real problems often require a logarithm in some other, arbitrary base. The change-of-base formula provides a reliable bridge, letting any logarithm be computed using whichever base a given tool natively supports, and it works precisely because of a fundamental mathematical property of logarithms: converting between bases is always possible through this consistent division relationship, regardless of which specific bases are involved.

Logarithms show up across a genuinely wide range of practical and scientific contexts specifically because many real-world phenomena grow or decay exponentially, and logarithms provide the natural mathematical tool for working backward from an exponential relationship to find the underlying rate or time involved. The Richter scale for earthquake magnitude, the decibel scale for sound intensity, and the pH scale for acidity are all logarithmic scales, chosen specifically because the underlying physical quantities they measure span such an enormous numerical range that a logarithmic (rather than linear) scale makes the numbers far more manageable and meaningful to work with. In finance, logarithms solve for the time needed to reach a target value under compound growth — precisely the inverse of the compound interest calculation, which uses exponents to project forward, while a logarithm-based calculation solves backward for how long that growth would take to reach a specific target.

Worked examples

Advantages

  • Handles any base, not just the common base-10 or natural log that many calculators support directly.
  • Uses the change-of-base formula, a reliable method for computing any logarithm from natural logarithms.
  • Simple two-input calculation for a concept that many people find abstract without concrete examples to check against.
  • Directly complements the exponent calculator, its inverse operation.

Limitations

  • Requires a positive number and a positive base other than 1, since logarithms aren't meaningfully defined outside these constraints.

Common mistakes

  • ⚠️ Confusing what a logarithm actually answers — it finds an exponent, not a straightforward multiplication or division result, which trips up many people first encountering the concept.
  • ⚠️ Forgetting that a base-10 logarithm and a natural logarithm (base e) are genuinely different calculations that give different results for the same input number, unless the base happens to be the same.
  • ⚠️ Attempting to calculate the logarithm of zero or a negative number, when logarithms are only meaningfully defined for positive numbers.

Tips

  • 💡 Remember the core question a logarithm answers: 'to what power must this base be raised to produce this number?' — keeping this framing in mind makes logarithm problems more intuitive.
  • 💡 Use the change-of-base formula (dividing natural log of the number by natural log of the base) whenever you need a logarithm in a base your calculator doesn't support directly.
  • 💡 Double-check which base a problem intends — base 10 (common log), base e (natural log), and base 2 (common in computer science) are all frequently used, and mixing them up produces a different, incorrect answer.
  • 💡 Cross-check a logarithm result against the exponent calculator by verifying that the base raised to the calculated result gives back the original number.

Real-life uses

  • Solving a logarithm problem for coursework or a scientific calculation
  • Working through a formula that requires converting between exponential and logarithmic form
  • Computing a logarithm in a base a standard calculator doesn't natively support
  • Understanding exponential relationships in fields like finance, acoustics, and chemistry

Frequently asked questions

How do I compute a natural log (ln) with this calculator?

Set the base to e, approximately 2.718281828 — the result is then exactly the natural logarithm of your number, since ln(x) is defined as log base e of x.

What is the change-of-base formula?

log_b(x) = ln(x) / ln(b) — it lets you compute a logarithm in any base using natural logarithms, which most calculators provide directly.

What question does a logarithm actually answer?

To what power must a given base be raised to produce a given number — it's the direct mathematical inverse of exponentiation, finding the exponent rather than the result of raising a base to a power.

Why is base e used for natural logarithms?

The constant e has unique mathematical properties that make calculus operations (derivatives and integrals) on exponential and logarithmic functions come out especially clean, which is why it's the default base throughout higher mathematics and continuous growth formulas.

Why are scales like the Richter scale or decibels logarithmic?

The underlying physical quantities they measure span an enormous numerical range, and a logarithmic scale compresses that range into far more manageable, meaningful numbers than a linear scale would produce.

Can I take the logarithm of a negative number or zero?

No — logarithms are only meaningfully defined for positive numbers with a positive base other than 1, since no real exponent applied to a positive base can produce a negative number or zero.