Logarithm calculator

logb(x) is the power you raise b to in order to get x. log₁₀(1000) = 3 because 10³ = 1000.

3
log10(1,000)
3log₁₀ (common)
6.907755279ln (natural)
9.9657842847log₂ (binary)
  1. Change of base: log10(1,000) = ln(1,000) ÷ ln(10)
  2. 6.907755279 ÷ 2.302585093 = 3
  3. Check: 103 ≈ 1,000

Change of base formula

logb(x) = ln(x) ÷ ln(b) = log₁₀(x) ÷ log₁₀(b)

Log rules

RuleExample
log(xy) = log x + log ylog 20 = log 2 + log 10 = 1.30103
log(x/y) = log x − log ylog 5 = log 10 − log 2 = 0.69897
log(xⁿ) = n log xlog 8 = 3 log 2 = 0.90309
log_b(b) = 1ln(e) = 1
log_b(1) = 0log₂ 1 = 0

Common values

xlog₁₀ xln xlog₂ x
1000
20.301030.6931471
30.4771211.0986121.584963
50.698971.6094382.321928
1012.3025853.321928
161.204122.7725894
501.698973.9120235.643856
10024.605176.643856
2562.408245.5451778
1,00036.9077559.965784
1,0243.01036.93147210
1,000,000613.81551119.931569

Frequently asked questions

What is the difference between log and ln?
log usually means base 10, ln means base e (about 2.71828).
Can you take the log of a negative number?
Not as a real number. The input must be greater than 0.