Logarithm Calculator
Calculate logarithms and antilogs in any base — log₂, log₁₀, ln, and custom bases.
Logarithm Calculator
Calculate a real logarithm, its inverse, or solve one missing value in logb(x) = y.
log_10(100) =
2.00000000
Result
Calculation steps
- Change of base: log_b(x) = ln(x) / ln(b)
- Substitute: ln(100) / ln(10)
- Numerator: ln(100) = 4.60517019
- Denominator: ln(10) = 2.30258509
- Result: 2.00000000
Quick examples
Logarithm of 100 in common bases
log₂
6.64385619
log₁₀
2.00000000
ln
4.60517019
Logarithm laws
Product: logb(xy) = logb(x) + logb(y). Example: log₂(8 × 4) = 3 + 2 = 5.
Quotient: logb(x/y) = logb(x) − logb(y). Example: log₂(32 / 4) = 5 − 2 = 3.
Power: logb(xⁿ) = n · logb(x). Example: log₂(8²) = 2 × 3 = 6.
What this calculator can do
- Calculate log base 2, base 10, natural log, or any valid custom base.
- Calculate antilogarithms and show calculation steps, including change-of-base steps for logarithms.
- Solve one missing value in logb(x) = y, with real-domain validation.
- Choose 0–12 displayed decimal places, copy a result, or reset the inputs.
How logarithms work
A logarithm answers the question: “To what power must the base be raised to get this value?” For example, log₂(8) = 3 because 2³ = 8.
How to use the calculator
- Choose logarithm, antilogarithm, or solve a logarithm equation.
- Enter a valid base and the value or exponent; for equation solving, choose the value to find and leave it empty.
- Read the result and calculation steps, then copy or adjust displayed decimal places if needed.
Real logarithm domain
For real logarithms, the argument must satisfy x > 0 and the base must satisfy b > 0 and b ≠ 1. An antilogarithm bʸ is defined for every real y when b > 0. Calculations use JavaScript floating-point numbers; decimal places change only how the answer is displayed, not its underlying precision.
Common uses
Logarithms describe orders of magnitude in sound intensity, acidity (pH), population growth, and compound processes. Choose the formula appropriate to the scientific context before interpreting a numeric result.
Frequently asked questions
How do I calculate a logarithm with any base?
Use the change-of-base identity: log_b(x) = ln(x) / ln(b), for x > 0 and b > 0, b ≠ 1.
What is the difference between a logarithm and an antilogarithm?
A logarithm finds the exponent y in bʸ = x. The antilogarithm performs the inverse operation by calculating bʸ.
Why can’t the base be 1?
Raising 1 to any power always gives 1, so it cannot represent every positive argument as a logarithmic base.
Are the results exact?
No. Results use finite-precision JavaScript floating-point arithmetic. The decimal-place selector controls display rounding only.