Skip to content
Advertisement
Hosinger Special Offer

Logarithm Calculator

Logarithm Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Logarithm —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

log_b(x) = ln(x) ÷ ln(b)

  • x = the number (greater than 0)
  • b = the base (greater than 0 and not equal to 1)

About the Logarithm Calculator

What is the Logarithm Calculator?

A logarithm answers the question “to what power must the base be raised to give this number?” Because 10³ = 1,000, log₁₀ 1,000 = 3. Logarithms are the inverse of exponents and turn multiplication into addition.

Base 10 (the common log) is used for pH, decibels and the Richter scale; base e ≈ 2.71828 (the natural log, ln) appears in continuous growth, compound interest and calculus; base 2 is used in computing and information theory. Choose one of these bases or enter your own.

How to use the Logarithm Calculator

  1. Number (x > 0) — must be greater than 0. (sample: 1,000)
  2. Base (sample: Base 10 (common log))
  3. Custom Base (used when "Custom base" is selected) — used only when “Custom base” is selected; must be positive and not 1. (sample: 5)
  4. Press Calculate Logarithm (results also refresh as you type). The result card shows the Logarithm, along with Natural log (ln x), Common log (log₁₀ x) and Binary log (log₂ x).

Formula used

log_b(x) = ln(x) ÷ ln(b)

  • x = the number (greater than 0)
  • b = the base (greater than 0 and not equal to 1)

This change-of-base rule lets any logarithm be computed from natural logs. log_b(x) = y means exactly the same as b^y = x.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Number (x > 0)1,000
BaseBase 10 (common log)
Custom Base (used when "Custom base" is selected)5
ResultValue
log base 10 of x3
Natural log (ln x)6.90775528
Common log (log₁₀ x)3
Binary log (log₂ x)9.96578428

Laws of logarithms

  • log(a × b) = log a + log b
  • log(a ÷ b) = log a − log b
  • log(aⁿ) = n × log a
  • log_b(b) = 1 and log_b(1) = 0

Tips for using the Logarithm Calculator

  • The log of a number between 0 and 1 is negative, and the log of 1 is 0 in every base.
  • To solve 2ˣ = 100, take logs of both sides: x = log 100 ÷ log 2 ≈ 6.644.
  • Doubling time at r% growth is ln 2 ÷ ln(1 + r/100) — the idea behind the Rule of 72.

Frequently asked questions

On most calculators “log” means base 10 and “ln” means the natural logarithm, base e ≈ 2.71828. They differ by a constant factor: ln x = 2.302585 × log₁₀ x.

No power of a positive base is ever zero or negative, so there is no exponent that could produce such a number. The logarithm is undefined there.

3, because 2³ = 8.

Use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). For example, log₅ 125 = ln 125 ÷ ln 5 = 3. Select “Custom base” in the calculator to do this automatically.