[Home](https://learningfolio.de5.net/) / [Math](https://learningfolio.de5.net/math/) / [Math glossary](https://learningfolio.de5.net/math/glossary/) / Log vs. Ln: What Is the Difference and How Do You Convert?

[Math glossary](https://learningfolio.de5.net/math/glossary/)

# 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.

Written by **Learningfolio Team**

We’re subject-matter experts in math, science, parent support, and education, with 100 years of combined experience. We believe in learning, experimenting, and growing, and we review one another’s work.

## On this page

* [TL;DR](https://learningfolio.de5.net/math/difference-between-log-and-ln/#tldr)
* [Key Points](https://learningfolio.de5.net/math/difference-between-log-and-ln/#key-points)
* [What is the difference between log and ln?](https://learningfolio.de5.net/math/difference-between-log-and-ln/#what-is-the-difference-between-log-and-ln)
* [Does log always mean base 10?](https://learningfolio.de5.net/math/difference-between-log-and-ln/#does-log-always-mean-base-10)
* [How do you convert between log and ln?](https://learningfolio.de5.net/math/difference-between-log-and-ln/#how-do-you-convert-between-log-and-ln)
* [When is one logarithm easier to use?](https://learningfolio.de5.net/math/difference-between-log-and-ln/#when-is-one-logarithm-easier-to-use)
* [Worked Examples Comparing Log and Ln](https://learningfolio.de5.net/math/difference-between-log-and-ln/#worked-examples-comparing-log-and-ln)
* [Mistakes That Change the Result](https://learningfolio.de5.net/math/difference-between-log-and-ln/#mistakes-that-change-the-result)
* [Try It Yourself](https://learningfolio.de5.net/math/difference-between-log-and-ln/#try-it-yourself)
* [Answers and Reasoning](https://learningfolio.de5.net/math/difference-between-log-and-ln/#answers-and-reasoning)
* [Frequently Asked Questions](https://learningfolio.de5.net/math/difference-between-log-and-ln/#frequently-asked-questions)
* [Conclusion](https://learningfolio.de5.net/math/difference-between-log-and-ln/#conclusion)
* [Read More](https://learningfolio.de5.net/math/difference-between-log-and-ln/#read-more)
* [Research Behind This Article](https://learningfolio.de5.net/math/difference-between-log-and-ln/#research-behind-this-article)

## TL;DR

**In common calculator notation, log uses base 10 and ln uses base $e$.** Both return exponents. An unmarked log can use a different base by convention, so check the source or software.

## Key Points

* $\log_{10}x$ answers “10 to what power gives $x$?”
* $\ln x=\log_e x$ answers the same question with base $e\approx2.71828$.
* Real logarithms need positive inputs.
* Convert using $\ln x=(\ln 10)\log_{10}x$.
* 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 $\log_{10}x$ or, in many classrooms and on many scientific calculators, $\log x$. The **natural logarithm** uses base $e$ and is written $\ln x$.

$$
\log_{10}x=y \iff 10^y=x,
\qquad
\ln x=y \iff e^y=x.
$$

The base changes the exponent required to reach the same positive input. For example, $\log_{10}100=2$ because $10^2=100$. The natural logarithm of 100 is about 4.605 because $e^{4.605}$ is about 100. [OpenStax, Logarithmic Functions](https://openstax.org/books/algebra-and-trigonometry-2e/pages/6-3-logarithmic-functions)

| Input or feature | Common logarithm | Natural logarithm |
| --- | --- | --- |
| Base | 10 | $e$ |
| Result at $x=1$ | 0 | 0 |
| Input that gives 1 | 10 | $e$ |
| Output at 100 | 2 | About 4.605 |
| Inverse function | $10^x$ | $e^x$ |

![The common logarithm reaches output one at ten and the natural logarithm reaches one at Euler's number](https://learningfolio.de5.net/assets/versioned/log-versus-ln-at-one.8e6866b10466.webp)


Both graphs pass through $(1,0)$. Each reaches output 1 when its input equals its base.

## Does log always mean base 10?

Calculator keys labelled **log** and **ln** typically distinguish base 10 and base $e$. 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](https://learningfolio.de5.net/math/introduction-to-logarithm/) explains how each base produces a different logarithmic scale. [Python, Mathematical Functions](https://docs.python.org/3/library/math.html#power-exponential-and-logarithmic-functions)

## How do you convert between log and ln?

For any real $x>0$, the change-of-base rule gives

$$
\log_{10}x=\frac{\ln x}{\ln 10},
\qquad
\ln x=(\ln 10)\log_{10}x.
$$

To see why, set $y=\log_{10}x$. Then $10^y=x$. Taking the natural log gives $y\ln 10=\ln x$, so divide by $\ln 10$ to recover $y$. This operation is valid because $\ln 10$ is positive.

Numerically, $\ln 10\approx2.302585$. 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](https://learningfolio.de5.net/math/log-rules/). [OpenStax, Logarithmic Properties](https://openstax.org/books/algebra-and-trigonometry-2e/pages/6-5-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 $\log_{10}x$ means the original quantity is ten times larger. A [common logarithm table](https://learningfolio.de5.net/math/log-table/) uses this pattern when separating digits from place value.

**Base $e$** is convenient when a model already contains $e^{kt}$ or when calculus uses the derivative of $\ln x$, which is $1/x$ for $x>0$. Multiplying $x$ by $e$ 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](https://openstax.org/books/calculus-volume-1/pages/1-5-exponential-and-logarithmic-functions)

## Worked Examples Comparing Log and Ln

### Example 1

Find $\log_{10}(0.001)$ and $\ln(0.001)$.

1. Since $0.001=10^{-3}$, the common logarithm is $-3$.
2. The natural logarithm is $-3\ln 10$.
3. To three decimal places, this is $-6.908$.

### Example 2

Evaluate $\ln(e^{2.5})$. What would $\log_{10}(e^{2.5})$ be?

1. The natural log and a power of $e$ undo each other, giving 2.5.
2. The common log divides this exponent by $\ln 10$.
3. This gives $2.5/\ln 10\approx1.086$.

### Example 3

Solve $e^{0.3t}=7$.

1. Take the natural log of both sides to get $0.3t=\ln7$.
2. Divide by $0.3$.
3. The result is $t\approx6.486$. Using common logs also works if the left side becomes $0.3t\log_{10}e$.

### Example 4

Solve $10^{2x}=45$.

1. Take the common log of both sides to get $2x=\log_{10}45$.
2. Divide by 2.
3. The result is $x\approx0.827$. Check by calculating $10^{2x}$ with the unrounded value of $x$.

### Example 5

A positive measurement rises from 25 to 2500. How much do its two logarithmic readings change?

1. The ratio of the new value to the old is $2500/25=100$.
2. The difference in common logarithms is $\log_{10}100=2$.
3. The difference in natural logarithms is $\ln100=2\ln10\approx4.605$.

### Example 6

Which is greater, $\ln(0.2)$ or $\log_{10}(0.2)$?

1. Both are negative because the input is between 0 and 1 and both bases exceed 1.
2. Since $\ln10>1$, multiplying the negative common logarithm by $\ln10$ makes it more negative.
3. Therefore $\log_{10}(0.2)$ is greater. Its value is about $-0.699$ versus about $-1.609$ 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

1. Find $\log_{10}(10^4)$ and $\ln(e^{-4})$.
2. Express $\ln1000$ as a multiple of $\ln10$.
3. Solve $2^t=5$ using natural logarithms.

## Answers and Reasoning

1. The values are 4 and $-4$ respectively.
2. $\ln1000=3\ln10$ because $1000=10^3$.
3. $t=\ln5/\ln2\approx2.322$.

## Frequently Asked Questions

### When are ln and the common log equal?

For positive real inputs, only at $x=1$. Both are zero there. At any other input, multiplying the common log by $\ln10$ changes it.

### Why does ln use $e$?

The exponential $e^x$ has derivative $e^x$. Its inverse $\ln x$ has derivative $1/x$. This makes base $e$ 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 $\log_{10}x$ by $\log_{10}e$, or multiply it by $\ln10$ if that constant is available.

## Conclusion

* Read $\ln$ as a base-$e$ logarithm.
* Check what $\log$ means in the specific textbook, calculator, or program.
* Use change of base when the required key or function is unavailable.

## Read More

* [Browse related lessons in the math glossary](https://learningfolio.de5.net/math/glossary/)

## Research Behind This Article

1. OpenStax, *Algebra and Trigonometry 2e: Logarithmic Functions*. [OpenStax](https://openstax.org/books/algebra-and-trigonometry-2e/pages/6-3-logarithmic-functions)
2. OpenStax, *Algebra and Trigonometry 2e: Logarithmic Properties*. [OpenStax](https://openstax.org/books/algebra-and-trigonometry-2e/pages/6-5-logarithmic-properties)
3. OpenStax, *Calculus Volume 1: Exponential and Logarithmic Functions*. [OpenStax](https://openstax.org/books/calculus-volume-1/pages/1-5-exponential-and-logarithmic-functions)
4. Python Software Foundation, *math: Power, Exponential and Logarithmic Functions*. [Python Documentation](https://docs.python.org/3/library/math.html#power-exponential-and-logarithmic-functions)
