Logarithm Calculator
This logarithm calculator finds the exponent needed to raise a chosen positive base to a positive value. It uses the change-of-base relationship and also reports the natural logarithm and common logarithm of that value.
By Dr. Hassan Khames EliwaLast updated
Result
- Natural logarithm
- 6.9314718056
- Common logarithm
- 3.0102999566
How it works
Turn a power into an exponent question
A logarithm reverses exponentiation. If b^y = x, then log base b of x equals y. The value x is the target, the base b describes the multiplying factor, and the answer y tells you how many such factors are needed. Noninteger answers are normal; they locate the target between adjacent whole-number powers.
The calculation uses log base b of x = ln(x) / ln(b). Natural logarithms use the mathematical constant e as their base. Common logarithms use ten. The selected-base result, natural logarithm, and common logarithm all describe the same input value, but they measure it against different multiplying factors. Changing the base does not change the two reference logarithms.
Know the permitted domain
Both the value and the base must be positive. The base cannot equal one because every real power of one is one, so it cannot provide a unique exponent for arbitrary targets. Values and bases must lie between 1e-100 and 1e100 inclusive. Empty entries, infinities, zero, and negative numbers are rejected rather than converted into plausible-looking answers.
Bases between zero and one are valid. Their powers decrease as the exponent increases, so the usual sign intuition reverses: a target above one produces a negative logarithm. For any allowed base, a target of one has logarithm zero. A target equal to the base has logarithm one.
Interpret precision near one
The denominator ln(b) becomes small when the base approaches one. Consequently, a small change in that base can cause a large change in the selected-base result. Check significant figures before interpreting a very large exponent. Results show up to ten decimal places, with scientific notation for nonzero magnitudes below one millionth.
Worked example
Example 1: count doubling steps
A processing exercise asks how many doublings take one item to 1,024 items. Enter positive value 1024 and base 2. The Logarithm is 10, because two raised to ten is 1,024. The Natural logarithm is 6.9314718056 and the Common logarithm is 3.0102999566. Only the first output counts doubling steps; the others are reference values in different bases.
Example 2: identify a decimal scale
A measurement scale uses a factor of ten for each step. Enter positive value 100 and base 10. The Logarithm is 2, the Natural logarithm is 4.605170186, and the Common logarithm is 2. The matching selected and common results are expected because the chosen base is ten. Neither output means that the original measurement was two units; it is the exponent associated with a hundredfold ratio.
Expert tips
Common mistakes
- Swapping the base and the value. Log base two of eight is three, whereas log base eight of two is one third. Label the multiplying factor and target explicitly before entering either number.
- Assuming every logarithm uses ten. Scientific software often uses log to mean the natural logarithm. This page labels the base-specific, natural, and common outputs separately so the notation does not have to carry that ambiguity.
- Applying logarithm rules to sums. The logarithm of a product can be separated into a sum of logarithms. The logarithm of a sum cannot generally be separated in the same way; calculate the sum first.
Frequently asked questions
Why is the logarithm of one zero?
Every permitted base raised to the zero power equals one. The inverse question therefore returns zero, regardless of which valid base you choose.
Can the answer be negative?
Yes. With a base greater than one, a target between zero and one produces a negative logarithm. With a base between zero and one, targets above one produce negative answers instead.
Does this calculator support complex logarithms?
No. It handles real logarithms of positive values only. Negative targets require complex-number definitions and branch choices that are outside this calculator's scope.
What does ln mean?
It means the natural logarithm, whose base is e, approximately 2.71828. Natural logarithms appear frequently in continuous growth, differential equations, and formulas involving exponential decay.
Why do the last digits differ from another tool?
Different display rounding and floating-point evaluation can change the final shown digits. Compare the underlying inputs, selected base, and displayed precision before treating a small difference as a formula error.
Related calculators
Related guides
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min readAbout the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee