Log Calculator

Calculate logarithms to any base, natural logs and antilogs, and see the change-of-base working.

Number entry: use a point for decimals (1.5). Commas grouped in threes are thousands separators (1,250), and a single comma such as 1,5 is read as a decimal comma. Nothing you enter leaves your device.

Showing the example values. Change the inputs and press Calculate for your own result.

log_10(1,000)

3

ln(x), base e
6.90775527898
log₁₀(x)
3
log₂(x)
9.96578428466

Working

  1. Change of base: log_10(x) = ln(x) ÷ ln(10) = 6.907755279 ÷ 2.302585093 = 3

About the log calculator

A logarithm answers the question: what power must the base be raised to in order to get a given number? This log calculator finds logarithms to base 10, base e (natural log), base 2 or any base you choose, and can also solve for the number or the base when the other two values are known.

It shows the natural, common and binary logarithm together so you can compare them.

Who should use the log calculator

  • Students in algebra, pre-calculus and science.
  • Programmers estimating how many bits or steps something needs.
  • Anyone working with decibels, pH, earthquake scales or growth rates.

How to use the log calculator: what each input means

Solve for
The logarithm, the number (antilog), or the base.
Base
10, e, 2 or a custom positive base other than 1.
Number x
Must be greater than zero when you take its logarithm.
Logarithm y
The exponent, used when solving for the number or the base.

How the log calculator works: method and formula

log_b(x) = y means b^y = x. Calculators compute any base using the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). Solving for the number simply raises the base to the power y, and solving for the base takes x to the power 1 ÷ y.

Definition
log_b(x) = y ⇔ b^y = x
Change of base
log_b(x) = ln(x) ÷ ln(b)
Product rule
log(xy) = log x + log y

How to read your log calculator result

Logarithms turn multiplication into addition, which is why they are used for scales that span many orders of magnitude. The logarithm of 1 is 0 for any base, and the logarithm of a number between 0 and 1 is negative.

Log Calculator worked example

Find log₁₀(1000), then log₂(8).

  1. 10^3 = 1000, so log₁₀(1000) = 3.
  2. Using change of base: ln(1000) ÷ ln(10) = 6.9077553 ÷ 2.3025851 = 3.
  3. 2^3 = 8, so log₂(8) = 3. In the same way, the natural log of 1000 is 6.9077553.

log₁₀(1000) = 3.

Practical uses of the log calculator

  • Computing how many doublings reach a target.
  • Converting between pH, decibels and linear values.
  • Solving exponential equations such as 2^x = 50.

Assumptions and limitations of this calculator

  • Real logarithms only: the number must be positive and the base must be positive and not equal to 1.
  • Results are floating-point approximations shown to 12 significant digits.
FAQs

Log Calculator FAQs

log usually means base 10 and ln means base e (about 2.71828), the natural logarithm. Some textbooks use log for base e, so check your source.

Need Something Built Around Your Numbers?

Code & Motions designs and builds custom calculators, dashboards and web tools for businesses. Tell us what you have in mind.