How it’s calculated
A logarithm answers the question "what power do I raise the base to in order to get x?" If b^y = x, then log_b(x) = y. The common logarithm uses base 10, the natural logarithm (ln) uses base e ≈ 2.71828, and the binary logarithm uses base 2. The antilog goes the other way: given y, it finds x = b^y.
The base must be positive and not 1, and x must be positive (no power of a positive base is zero or negative). For any other base the calculator uses the change-of-base formula:
Example: log₂(8). Since 2³ = 8, the answer is 3. Check with change of base: ln 8 ÷ ln 2 = 2.0794 ÷ 0.6931 = 3. Similarly log₁₀(1000) = 3 and the antilog 10³ = 1000.
Frequently asked questions
What is the difference between log and ln?
log usually means base 10 (or sometimes base 2 in computing), and ln is the natural logarithm with base e ≈ 2.71828.
Why can’t I take the log of zero or a negative number?
A positive base raised to any real power is always positive, so no power can produce 0 or a negative number.
What is an antilog?
The antilogarithm is the inverse of the logarithm. If log_b(x) = y, then the antilog of y is x = b^y.
How do I calculate a log in a base my calculator does not have?
Use change of base: divide the natural log of x by the natural log of the base, log_b(x) = ln x ÷ ln b. Choose "Other base" here and it does that for you.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- College Algebra 2e, §6.3 Logarithmic Functions — OpenStax
- College Algebra 2e, §6.5 Logarithmic Properties (change of base) — OpenStax
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator