Logarithm Calculator
Pick log or antilog and the base. The working shows the change-of-base formula so you can check it by hand.
Result
3
Working
log10(1,000) = ln(1,000) ÷ ln(10) = 6.907755 ÷ 2.302585 = 3.
Check
10^3 = 1,000.
How it works
A logarithm answers the question "what power of the base gives this number?". log10(1000) = 3 because 10^3 = 1000; log2(1024) = 10 because 2^10 = 1024; ln(x) is the logarithm to base e ≈ 2.71828. The antilog is the reverse: given the exponent y, it returns b^y.
Calculators and tables only provide a few bases, usually 10 and e. Any other base comes from the change-of-base formula: log_b(x) = ln(x) ÷ ln(b). The Working line shows that division so you can reproduce the answer on a basic scientific calculator, and the Check line raises the base back to the result to confirm it.
Logarithms turn multiplication into addition, which is why they underpin decibels, pH, the Richter scale, and the doubling-time question in finance: the number of periods for an investment to reach a target is log(target ÷ start) ÷ log(1 + rate).
Formula
log_b(x) = y ⇔ b^y = x (x > 0, b > 0, b ≠ 1) log_b(x) = ln(x) ÷ ln(b) (change of base) antilog: b^y
Example
log10(1000): ln(1000) ÷ ln(10) = 6.907755 ÷ 2.302585 = 3, because 10^3 = 1000.
log2(10) = 3.321928, which is how many bits it takes to hold one decimal digit. With base 5, log_5(125) = 3.
Antilog with base 10 and exponent 2.5: 10^2.5 = 316.227766.
Assumptions and limitations
- The logarithm is only defined for numbers greater than zero; zero and negative numbers are rejected rather than reported as undefined or complex.
- The base must be positive and not 1. Bases between 0 and 1 are allowed and give negative logarithms for numbers above 1.
- Results are cleaned to 15 significant digits so that exact cases such as log10(1000) = 3 come out exact, and are shown to 6 decimal places.
Frequently asked questions
Which base does "log" mean on its own?
It depends on who is writing. In most school and engineering contexts log means base 10 and ln means base e. In computer science log often means base 2, and in pure mathematics and many programming languages log means the natural logarithm. This calculator always names the base.
How do I find a logarithm in base 5 on a calculator that only has log and ln?
Use the change-of-base formula: log_5(125) = ln(125) ÷ ln(5) = 4.828314 ÷ 1.609438 = 3. Either log or ln works as long as you use the same one top and bottom.
More in Math & Geometry calculators.