Definition
What a logarithm means
A logarithm is the exponent that gives a specified positive number when used as a power of a given base. Its inverse, the antilogarithm, raises that same base to the exponent to recover the number. In real arithmetic the base is positive and different from one.
- Logarithm returns
- An exponent
- Real input
- Must be greater than zero
- Common bases
- Ten, two and Euler’s number
Read the result as an exponent
A logarithm asks a familiar power question in reverse. Instead of multiplying a base repeatedly or using a fractional power, you start with the target output and ask what exponent produces it. Logarithms therefore remain useful when the answer is between integers.
To check a result, raise the base to the exponent and compare the power with your original argument. Use the full precision you have available if the target is large or the base is far from one. Rounding an exponent before reversing it can change the power visibly.
Pick a base that fits the quantities
Use ln when the relationship is already written with e, as in many continuous growth or decay expressions. Base ten is a convenient way to think about powers of ten. Base two is common when counting doublings. A custom base can represent a fixed multiplier that differs from those defaults.
When the base is less than one, powers decrease as the exponent increases. That changes how you interpret order on the log scale. A larger positive argument then has a smaller log. In an inequality, the direction can reverse when you apply a decreasing logarithm on both sides.
Use change of base consistently
A fixed-base calculator can find logs in any valid base by dividing two logs taken with the same reference base. Here the displayed substitution uses natural logs for both numerator and denominator. You can use common logs for both instead and obtain the same mathematical result.
The denominator is the log of your requested base, not the log of the argument. Keeping that order matters in an equation. A base close to one makes the denominator small, so a modest change in the base can substantially alter the exponent.
Isolate the power before solving
The equation mode solves the form b raised to x equals y. If a problem starts with an outside multiplier or a term added to the power, use algebra to isolate the power first. Then enter the resulting right-hand side as the argument. It must be positive to give a real solution for a valid base.
An exponential expression can exceed the range of a calculator even when its logarithm is manageable. In that case, continuing calculations on the log scale can avoid expanding a huge power. Convert back with the antilog only when you need a value on the original scale.
Step-by-step example
Solve 2 raised to an unknown power equals 20, then evaluate the base-two antilog of −3.
| Step | Result |
|---|---|
| Exponent that gives 20 | 4.321928 |
| Power using the unrounded exponent | 20 |
| Natural log of the base in change of base | 0.693147 |
| Base-two antilog of −3 | 0.125 |
Formulas used
log_b(y) = ln(y) ÷ ln(b)
If bˣ = y with b > 0 and b ≠ 1, then x = log_b(y).
- b
- logarithm base
- y
- positive argument
- x
- exponent that gives the argument
- log_b
- logarithm to base b
- ln
- natural logarithm
Example: For 2ˣ = 20, ln(20) ÷ ln(2) gives x ≈ 4.321928.
If x = log_b(y), then y = bˣ.
- b
- base of the power
- x
- exponent
- y
- resulting power
- log_b
- logarithm to base b
Example: For base 2 and exponent −3, the antilog is 0.125.
When the answer can mislead
- Taking a log of each term in a sum does not give the log of the sum.
- A base below one reverses the direction of an inequality when you take logs on both sides.
- Rounding the exponent early can noticeably change the power you recover.
Questions
What is the difference between log and ln?
The notation ln always uses the base e, Euler’s number. The unqualified word log can mean base ten in school problems or in some scientific contexts, and base e in other settings. Choose the mode that matches the convention of your text, spreadsheet or problem.
Why is the base restricted to positive values other than one?
A positive base other than one defines an exponential function with positive outputs that is one-to-one. A base of one always gives one, so there is no unique exponent to recover. Negative bases cannot give a real output for every real exponent.
Can a logarithm be negative?
Yes. A negative logarithm means the exponent that produces the argument is negative. For a base greater than one this happens when the argument lies between zero and one. For a base between zero and one, the sign flips and negative logarithms occur for arguments above one.
What is an antilog?
An antilog applies the inverse of a logarithm at the same base. In a log problem you know the power’s result and need the exponent. In an antilog problem you have the exponent and need the corresponding power. Use the same base to go back to the starting scale.
Can I take a logarithm of zero or a negative number?
The real logarithm requires a strictly positive argument. A positive base raised to a finite real exponent stays positive, so zero and negative arguments are outside the real logarithm’s domain. Check whether a negative sign belongs on the argument or outside the log expression.
Embed this calculator
Cite this calculator
Log Calculator. CalculatorLab. https://calculatorlab.site/calculators/log-calculator/. Last updated . Accessed .