MultiSwitch MultiSwitch ← Home
SEARCH
SEARCH
← Home Feedback

Log Calculator

log in any base — 10, e, 2 or your own — plus antilog

Enter a number and a base to get its logarithm, or use the antilog section to go the other way. Common bases (10, e and 2) are always shown alongside your custom base.

–
log₁₀(1000)
–
–
log₁₀ x
–
ln x
–
log₂ x

Antilog (inverse log)

–
10³
Results use double-precision floating point and are rounded for display. See Terms.

How this works

The logarithm logb(x) answers the question "what power do I raise b to, to get x?" So log₁₀(1000) = 3 because 10³ = 1000, and log₂(8) = 3 because 2³ = 8. The number x must be positive, and the base must be positive and not equal to 1.

Calculators only have ln and log₁₀ built in, so any other base uses the change-of-base rule: logb(x) = ln(x) ÷ ln(b). For example, log₅(125) = ln 125 ÷ ln 5 = 4.8283 ÷ 1.6094 = 3.

The antilog reverses a logarithm: antilogb(y) = by. It is how you turn a pH back into a hydrogen-ion concentration (10−pH) or decibels back into a power ratio.

FAQ

What is the difference between log and ln?

"log" on most calculators means base 10 (the common logarithm). "ln" is the natural logarithm, base e ≈ 2.71828, which appears in growth, decay and compound-interest formulas. In some maths and programming contexts, "log" means ln, so check which convention you are using.

Why can’t I take the log of zero or a negative number?

No power of a positive base ever produces zero or a negative number, so the logarithm is undefined there (in real numbers). As x approaches 0 from above, the log heads towards negative infinity.

How do I calculate a log in a base my calculator doesn’t have?

Use the change-of-base formula: log_b(x) = ln(x) / ln(b), or equally log₁₀(x) / log₁₀(b). This calculator does that for you and shows the working.

What is an antilog?

The antilog is the inverse of a logarithm: if log_b(x) = y, then x = b^y. The antilog of 2 in base 10 is 100.

What are logs used for in real life?

Logarithmic scales measure things that span huge ranges: pH (acidity), decibels (loudness), the Richter and moment-magnitude scales (earthquakes), and star brightness. Logs also solve for time in growth and interest problems.