Advertisement
top slot

Logarithm Calculator

log base b of x — any base

Calculators

Logarithm Calculator

log base b of x — any base

Advertisement
top slot
log_b(x)
Updates as you type

About Logarithm Calculator

A logarithm calculator computes log_b(x) — the power you'd have to raise base b to in order to get x. The Toolenza calculator handles base 10 (common log), base e (natural log, ln), base 2, and arbitrary user-chosen bases.

Why logarithms are everywhere

Logarithms turn multiplication into addition and exponentiation into multiplication. That's why they show up wherever quantities span many orders of magnitude:

  • pH — log scale of hydrogen-ion concentration (base 10).
  • Decibels — log scale of sound intensity ratios (base 10). +10 dB = 10× the power.
  • Earthquake magnitude (Richter, moment) — log scale of energy release (base 10). Magnitude 6 releases ~32× the energy of magnitude 5.
  • Star magnitude — log scale of brightness (with a 2.512 base by convention). Each magnitude step ≈ 2.5× brightness.
  • Big-O notationO(log n) algorithms scale logarithmically (binary search, balanced trees). 30 steps to search a billion items.
  • Information theory — bits are log₂ of the number of distinguishable states.

The three bases that matter

  • log = log₁₀ ("common log") — natural for human-scale measurements (pH, dB, decimal place values).
  • ln = log_e ("natural log," base e ≈ 2.71828) — falls out of every calculus result; describes continuous growth and decay.
  • lg = log₂ — natural for computer science and information theory.

Useful identities

  • log(ab) = log(a) + log(b) — multiplication → addition.
  • log(a/b) = log(a) − log(b) — division → subtraction.
  • log(aⁿ) = n × log(a) — exponentiation → multiplication.
  • log_b(x) = ln(x) / ln(b) — change-of-base formula; any base from any other.
Advertisement
in-content slot

Frequently asked questions

log without a base usually means base 10 (common log); ln is base e ≈ 2.71828 (natural log). Pure-math contexts often write 'log' for natural log — context matters.

In real numbers, no exponent of a positive base produces a negative result. Complex logarithms exist but aren't what most calculators return.

Always 0, in any base. Any base raised to the 0th power is 1.

log_b(x) = log_a(x) / log_a(b). The calculator handles this internally.

Embed this tool on your site

Drop a one-line iframe snippet into any blog, lesson plan, or knowledge base. Powered-by-Toolenza link included.

Embed this tool

Paste this snippet into any HTML page. The tool runs entirely in your reader's browser.

Advertisement
bottom slot
Sticky ad — mobile-sticky

Logarithm Calculator

No reviews yet — be the first to share your thoughts.

Your rating
  1. No reviews yet — be the first to share your thoughts.
Powered by Codenzia
Sticky ad — mobile-sticky
↑↓ navigate open
Toolenza Brain
Tip: describe a result you want, not a tool. The Brain picks for you.
⌘⇧K to open · esc to close
Thanks! We read every message.