Math calculator

Free log calculator

Calculate logarithms in any base — enter a value and base to see log₁₀, ln, or any custom base result, updated live, as you type.

InputsLive
x (argument)
Must be greater than 0.
Base
Must be > 0 and ≠ 1. Use 10 for common log, e ≈ 2.71828 for natural log.
Result
log result
3
log10(1000) = 3
x1000
base10
log result3
ln(x)6.907755

log_b(x) = ln(x) / ln(b). x must be > 0; base must be > 0 and ≠ 1.

Results are estimates. Consult a professional.

How it's calculated

How the logarithm calculator works

A logarithm answers the question: "to what power must I raise the base to get this number?" It is the inverse of exponentiation. Logarithms compress huge ranges (like earthquake magnitudes or sound levels) into manageable scales and appear throughout science, engineering, and finance.

Definition: log_b(x) = y ⟺ b^y = x
Common log: log₁₀(x) — written log(x) in most contexts
Natural log: log_e(x) — written ln(x); e ≈ 2.71828
Change of base: log_b(x) = ln(x) / ln(b) = log(x) / log(b)

Key identities: log(xy) = log(x) + log(y); log(x/y) = log(x) − log(y); log(xⁿ) = n·log(x). These turn multiplication into addition, which is why logarithms were the original calculating tool before electronic computers.

NIST Digital Library of Mathematical Functions — §4.1 Special Values and Identities
Example

Worked example: log₁₀, ln, and log₂

Example: log₁₀(1000), ln(e²), log₂(32)

Three logarithms covering the most common bases: base 10, base e, and base 2.

log₁₀(1000) = 3 because 10³ = 1000
ln(e²) = 2 because e² = e² (ln and e cancel)
log₂(32) = 5 because 2⁵ = 32
Cross-check via change of base:
log₂(32) = ln(32) / ln(2) = 3.4657 / 0.6931 = 5 ✓
log₁₀(1000) = 3 · ln(e²) = 2 · log₂(32) = 5
Each result is a clean integer because the argument is an exact power of the base — a useful mental check.
Quick reference

Common logarithm values

The table below covers the most-referenced log₁₀ and ln values. Memorising a few anchors (log 2 ≈ 0.301, log 3 ≈ 0.477) lets you estimate most others.

xlog₁₀(x)ln(x)Note
0.001−3−6.90810⁻³
0.01−2−4.60510⁻²
0.1−1−2.30310⁻¹
100log of 1 is always 0
20.3010.693log 2 — key anchor
e0.4341ln(e) = 1 by definition
1012.30310¹
10024.60510²
1,00036.90810³
10,00049.21010⁴

Values rounded to three decimal places. ln(x) = log₁₀(x) × ln(10) ≈ log₁₀(x) × 2.3026.

Practical tips

Tips for working with logarithms

Logarithms are counterintuitive at first but follow consistent rules. These tips cover the most common stumbling blocks.

  • The domain is positive reals only — log(0) is undefined (approaches −∞); log of a negative number is not a real number; always check your input is positive.
  • Use change of base for any base — most calculators have only log₁₀ and ln; compute log_b(x) = ln(x)/ln(b) or log(x)/log(b) for any other base.
  • Adding logs is multiplying arguments — log(a) + log(b) = log(a×b); this is why log tables and slide rules could turn multiplication into addition.
  • Decibels and the Richter scale use log₁₀ — a 3 dB increase doubles power (10^0.3 ≈ 2); a magnitude 7 earthquake is 10× more intense than magnitude 6.
  • ln appears in exponential growth/decay — if a quantity grows as e^(kt), then ln gives you the rate k; half-life, compound interest, and population models all use ln.
Accuracy & limits

Accuracy and limitations

This calculator uses the JavaScript Math.log() function (natural logarithm) internally and applies the change-of-base formula for other bases. Results are accurate to approximately 15 significant figures across the full positive real range. Very small inputs close to zero (e.g., x = 10⁻³⁰⁰) and very large inputs (e.g., x = 10³⁰⁰) remain within the double-precision range. Inputs of zero or negative numbers are invalid and the calculator will display an error.

Glossary

Key terms

The exponent y such that b^y = x; it reverses exponentiation for a given base b.
Logarithm in base 10; written log(x) without a subscript in most scientific contexts.
Logarithm in base e (≈ 2.71828); the inverse of the exponential function e^x.
The irrational constant ≈ 2.71828…; the base of the natural logarithm and of natural exponential growth.
log_b(x) = ln(x)/ln(b); converts any logarithm to one computable with a standard ln or log₁₀ function.
The inverse operation: if log_b(x) = y, then x = b^y is the antilogarithm of y in base b.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free log calculator

A logarithm calculator is a free online tool that helps you compute log_b(x) for any positive value and base — common log, natural log, binary log, or custom base. A logarithm is the inverse of exponentiation: log_b(x) asks 'what power of b gives x?' Any base reduces to natural log via the change-of-base identity. It runs entirely in your browser with instant results and no sign-up.
Same operation, different bases. 'log' usually means log₁₀ (common log). 'ln' is log base e (natural log, used in calculus). 'log₂' is base 2 (used in computer science and binary contexts). The change-of-base identity ties them all together: log_b(x) = ln(x) / ln(b).
Because no real exponent of a positive base produces a negative or zero result. b^y is always positive for b > 0. Logarithms of non-positive numbers are complex — not defined in real arithmetic.
Always 0, for any valid base. Because b⁰ = 1 for any non-zero b, the inverse log_b(1) = 0.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.