Logarithm Calculator — log₁₀, ln & Custom Base

Evaluate log₁₀(x), ln(x), log₂(x), or log with any positive base b—instant results in your browser, nothing uploaded.

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-05-21

What is a logarithm calculator?

A logarithm calculator finds log_b(x)—the power you raise base b to in order to get x. This tool supports log₁₀, natural log (ln), log₂, and any custom positive base, computed locally in your browser.

Logarithms are the inverse of exponentiation. If b^y = x, then log_b(x) = y. The common logarithm uses base 10 (log₁₀), the natural logarithm uses base e (ln), and computer science often uses base 2 (log₂).

For any valid base b (positive, not 1), log_b(x) = ln(x) / ln(b). That change-of-base formula is what this calculator applies—so you can evaluate logs without memorizing tables.

Use logarithms for pH and decibel scales, half-life problems, algorithm complexity (log₂ n), and undoing exponential growth in finance or science. Pair with an exponent calculator when you need b^y instead of solving for y.

log₁₀, ln, log₂, or custom base—positive x only; runs locally, never uploaded.

Quick answers

Concise answers for common searches — definitions, steps, and comparisons.

What is log₁₀(100)?

log₁₀(100) = 2 because 10 raised to the power 2 equals 100.

Are my numbers uploaded?

No. Values you enter are evaluated in your browser with JavaScript math—they are not sent to EverydayTools servers.

How do you compute log with a custom base?

log_b(x) = ln(x) ÷ ln(b) for positive x and valid base b (b > 0, b ≠ 1).

How to use Logarithm Calculator — log₁₀, ln & Custom Base

  1. Enter a positive value x

    Type the number whose logarithm you want. Logarithms are only defined for x > 0.

  2. Choose log base 10, ln, log₂, or custom

    Select common log (base 10), natural log (base e), log base 2, or switch to custom and enter your own base b.

  3. Confirm custom base rules

    For custom base, b must be positive and cannot be 1 (log₁(x) is undefined). The tool uses ln(x)/ln(b).

  4. Read log_b(x) and copy if needed

    The result shows log_b(x) with high precision. Use copy or share when documenting homework or lab work.

  5. Cross-check with exponent calculator

    Verify by raising b to the result power in the exponent calculator— you should recover x within rounding.

Who uses Logarithm Calculator — log₁₀, ln & Custom Base?

Common real-world scenarios where this tool saves time.

Homework and exam checks

Verify log₁₀, ln, and log₂ answers without a physical scientific calculator.

Algorithm and CS coursework

Evaluate log₂(n) for complexity analysis and binary tree depth estimates.

Science and engineering labs

Convert between log scales (pH, decibels) or apply change-of-base for custom formulas.

Finance and growth models

Work with continuous compounding and ln-based growth rates alongside exponent tools.

Reference tables

Common logarithm types

Log typeBaseTypical use
Common log (log₁₀)10pH, decibels, orders of magnitude, log scales on charts
Natural log (ln)e ≈ 2.718Calculus, continuous compound growth, physics
Log base 2 (log₂)2Binary bits, algorithm complexity, information theory
Custom log_bAny b > 0, b ≠ 1Change-of-base homework, engineering formulas

When to use Logarithm Calculator — log₁₀, ln & Custom Base vs related tools

Related toolUse this tool whenUse related tool when
Exponent CalculatorYou know base and exponent and need b^y (the forward power).You know x and base and need the exponent y where b^y = x.
Scientific CalculatorYou only need one or two log evaluations with a full keypad.You want a focused log tool with presets, custom base, and shareable links.

Common mistakes to avoid

Entering zero or negative x

Logarithms require x > 0. Use the exponent calculator for negative exponents on positive bases instead.

Using base 1 for custom log

log₁(x) is undefined because 1^y is always 1. Pick any other positive base.

Confusing ln with log₁₀

ln uses base e; log₁₀ uses base 10. They differ—for example ln(10) ≈ 2.303, not 1.

Advertisement

Frequently Asked Questions

What is a logarithm?

log_b(x) is the exponent y such that b^y = x. Example: log₁₀(100) = 2 because 10² = 100. Logarithms undo exponentiation.

What is the natural logarithm (ln)?

ln(x) is log with base e (≈2.71828). It appears in calculus, continuous growth, and many science formulas. ln(1) = 0 and ln(e) = 1.

What is log base 2 used for?

log₂ counts how many times you can halve a number—common in binary search complexity O(log₂ n), information theory, and bit-length estimates.

How is log different from the exponent calculator?

The exponent calculator computes b^y (forward power). This tool solves for the exponent: given x and b, find y in b^y = x.

Why must x be positive?

No real number y satisfies b^y = negative x when b is positive. Complex logarithms exist but this tool returns real results only.

How do you calculate log with any base?

Use the change-of-base formula: log_b(x) = ln(x) / ln(b), with x > 0, b > 0, and b ≠ 1.

What is the difference between log and ln on a calculator?

LOG usually means base 10 (common logarithm). LN means base e (natural log). Always check your device labeling.

Is my data stored or uploaded?

No. Numbers you enter are processed locally in your browser. They are not saved on our servers during normal use.

Privacy, accuracy, and trust

Privacy

Values for x and base b are evaluated locally in your browser—they are not uploaded for logarithm calculations.

Accuracy

Uses standard JavaScript Math.log and change-of-base; suitable for education and quick checks—not certified for regulated engineering sign-off.

Educational math tool—verify critical calculations independently.

More free tools for the same workflow.

Advertisement

Reviewed by EverydayTools Editorial Team on 2026-05-21.