Log vs. Ln: What Is the Difference and How Do You Convert?
Compare base-10 log with natural logarithm, check calculator conventions, convert both ways, and follow six examples.
TL;DR
In common calculator notation, log uses base 10 and ln uses base . Both return exponents. An unmarked log can use a different base by convention, so check the source or software.
Key Points
- answers “10 to what power gives ?”
- answers the same question with base .
- Real logarithms need positive inputs.
- Convert using .
- Match the base to the original expression, axis label, or software function.
What is the difference between log and ln?
The common logarithm uses base 10. It is written or, in many classrooms and on many scientific calculators, . The natural logarithm uses base and is written .
The base changes the exponent required to reach the same positive input. For example, because . The natural logarithm of 100 is about 4.605 because is about 100. OpenStax, Logarithmic Functions
| Input or feature | Common logarithm | Natural logarithm |
|---|---|---|
| Base | 10 | |
| Result at | 0 | 0 |
| Input that gives 1 | 10 | |
| Output at 100 | 2 | About 4.605 |
| Inverse function |
Does log always mean base 10?
Calculator keys labelled log and ln typically distinguish base 10 and base . In mathematics and computer software, an author or library can define an unmarked log differently. Python’s math.log(x) uses the natural logarithm by default, while math.log10(x) explicitly uses base 10. In algorithms, some texts use log for base 2 or ignore the base when discussing growth up to constant factors.
Use the base written as a subscript when it appears. When reading code, check the documentation for that function. The introduction to logarithms explains how each base produces a different logarithmic scale. Python, Mathematical Functions
How do you convert between log and ln?
For any real , the change-of-base rule gives
To see why, set . Then . Taking the natural log gives , so divide by to recover . This operation is valid because is positive.
Numerically, . Multiplying a common logarithm by this factor gives its natural logarithm. Dividing goes in the opposite direction. Keep the exact constant until the final rounding step. Apply the same base-change reasoning to other bases using the log rules. OpenStax, Logarithmic Properties
When is one logarithm easier to use?
Base 10 makes decimal powers and order of magnitude easy to read. An increase of one unit in means the original quantity is ten times larger. A common logarithm table uses this pattern when separating digits from place value.
Base is convenient when a model already contains or when calculus uses the derivative of , which is for . Multiplying by raises its natural logarithm by one. You can solve an exponential equation with either base if you use the same base throughout. OpenStax, Calculus Volume 1: Exponential and Logarithmic Functions
Worked Examples Comparing Log and Ln
Example 1
Find and .
- Since , the common logarithm is .
- The natural logarithm is .
- To three decimal places, this is .
Example 2
Evaluate . What would be?
- The natural log and a power of undo each other, giving 2.5.
- The common log divides this exponent by .
- This gives .
Example 3
Solve .
- Take the natural log of both sides to get .
- Divide by .
- The result is . Using common logs also works if the left side becomes .
Example 4
Solve .
- Take the common log of both sides to get .
- Divide by 2.
- The result is . Check by calculating with the unrounded value of .
Example 5
A positive measurement rises from 25 to 2500. How much do its two logarithmic readings change?
- The ratio of the new value to the old is .
- The difference in common logarithms is .
- The difference in natural logarithms is .
Example 6
Which is greater, or ?
- Both are negative because the input is between 0 and 1 and both bases exceed 1.
- Since , multiplying the negative common logarithm by makes it more negative.
- Therefore is greater. Its value is about versus about for the natural log.
Mistakes That Change the Result
Mistake 1: Using the wrong calculator key
For input 100, use the expected base. The outputs 2 and about 4.605 can both be correct for the same input, depending on which log you need.
Mistake 2: Switching bases halfway through an equation
If you take common logs on one side of an equality, apply the same operation to the other side. Rewriting between bases requires the conversion factor.
Mistake 3: Applying either real logarithm to zero or a negative number
In the real-number setting, both require positive inputs. A negative output is allowed, as Example 1 shows.
Try It Yourself
- Find and .
- Express as a multiple of .
- Solve using natural logarithms.
Answers and Reasoning
- The values are 4 and respectively.
- because .
- .
Frequently Asked Questions
When are ln and the common log equal?
For positive real inputs, only at . Both are zero there. At any other input, multiplying the common log by changes it.
Why does ln use ?
The exponential has derivative . Its inverse has derivative . This makes base convenient for calculus and continuous growth models.
Can I type a natural logarithm using only a log key?
Yes, if the key uses base 10. Divide by , or multiply it by if that constant is available.
Conclusion
- Read as a base- logarithm.
- Check what means in the specific textbook, calculator, or program.
- Use change of base when the required key or function is unavailable.
Read More
Research Behind This Article
- OpenStax, Algebra and Trigonometry 2e: Logarithmic Functions. OpenStax
- OpenStax, Algebra and Trigonometry 2e: Logarithmic Properties. OpenStax
- OpenStax, Calculus Volume 1: Exponential and Logarithmic Functions. OpenStax
- Python Software Foundation, math: Power, Exponential and Logarithmic Functions. Python Documentation