Log Calculator

Calculate log instantly in your browser.

Loading calculator…

What this tool does

Calculate log instantly in your browser. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.

How to use the Log Calculator

  1. Enter or select value x.
  2. Enter or select base.
  3. Read the calculated result; change any measurement to compare alternatives.

Formula

log_b(x) = ln(x)/ln(b) — the exponent the base must be raised to in order to give x.
x
Value x
base
Base

Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.

Worked example

For log calculator, the following measurements illustrate the exact method: Value x: 8; Base: 2.

Inputs

  • Value x8
  • Base2

Result

  • log base 23
  • Natural log ln(x)2.08
  • log₁₀(x)0.9
  • log₂(x)3
  • Check (base ^ result)8

Results explained

log base 2
log base 2 from the formula above. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.
Natural log ln(x)
Natural log ln(x) from the formula above. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.
log₁₀(x)
log₁₀(x) from the formula above. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.
log₂(x)
log₂(x) from the formula above. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.
Check (base ^ result)
Check (base ^ result) from the formula above. Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.

Frequently asked questions

log_b(x) = ln(x)/ln(b) — the exponent the base must be raised to in order to give x.

Logarithms are the inverse of exponents: log₂(8) = 3 because 2³ = 8.

Where mathematically meaningful, yes. Fields specify permitted ranges and undefined operations display an error.

Exact integer calculations use safe integers; decimal calculations use browser floating point, so small rounding differences can occur.

All values remain in your browser and are never uploaded.