Among infinitely many possible bases, two have earned special notation and widespread use. The common logarithm uses base 10, aligning with the decimal system and appearing throughout applied sciences. The natural logarithm uses base e≈2.71828, emerging from calculus and dominating theoretical mathematics. Understanding when to use each — and how to convert between them — is essential for practical computation.
For 1000 the answer is 3, because 103=1000. The question still has an answer for numbers that are not powers of 10.
Multiplying a number by 10 adds exactly 1 to the power.
number
as a power of 10
power
1000
10³
3
7
100.845
0.845
70
101.845
1.845
700
102.845
2.845
7000
103.845
3.845
The decimal part 0.845 comes from the digit 7; the integer part counts the places, one less than the number of digits.
The power measures size in factors of ten.
Base 10 connects directly to the decimal number system. Each power of 10 corresponds to a place value: 101=10, 102=100, 103=1000. The common logarithm inverts this relationship, reporting how many powers of ten a number contains.
For powers of 10, the values are immediate: log(10)=1, log(100)=2, log(1000)=3, log(0.1)=−1, log(0.01)=−2. For other numbers, the integer part indicates the order of magnitude. Since log(500)≈2.699, the number 500 lies between 102=100 and 103=1000, and on a logarithmic scale it sits closer to the latter.
The definition
The common logarithm of a positive number x is the power to which 10 must be raised to give x: log(x)=y exactly when 10y=x.
The common logarithm is the logarithm with base 10. It is written log(x) without a subscript, or log10(x) when clarity is needed.
So log(1000)=3 and log(7000)≈3.845, because 103.845≈7000.
Base 10 suits the decimal system and quantities on a human scale.
Did you know: Counting digits without writing them
A whole number has one more digit than the integer part of its common logarithm. Since log(2100)=100⋅log(2)≈30.1, the number 2100 has 31 digits.
Historically, common logarithms enabled calculation before electronic computers. Logarithm tables converted multiplication into addition — a far simpler operation to perform by hand. Though tables are obsolete, the notation persists, and base 10 remains natural for human-scale quantities.
A bare "log" does not mean base 10 everywhere.
In much of higher mathematics and in many programming languages, log(x) means the logarithm with base e. The conventions are compared in logarithm notation, and base e is introduced in the natural logarithm.
The rest of the page covers notation, the natural logarithm and the number e, calculator conventions, when to use which, converting between bases, comparing graphs, a side-by-side summary and common pitfalls.
Logarithm Notation
Notation
Logarithm Notation
The subscript that names the base, the three-way war over what a bare log means, and the two Latin letters everyone reads differently.
Three slots: the base as a subscript, the argument on the line, and the output — which is an exponent: the power b needs to reach x. Like sinx, the argument often goes unparenthesised: logx and log(x) are the same statement.
CasesSubscript present — unambiguous, any base. Subscript dropped — a dialect question, next entry. Two-argument software form — LOG(x, base), argument first, base second, as in Calculator Conventions below.
Also writtenlogb(x) with full parentheses, obligatory once the argument is a sum: logb(x+1), never logbx+1.
Do not confuseA product. logx is one operator applied to x — not l⋅o⋅g⋅x, and the subscript multiplies nothing.
logx
Log of x — base depends on who is writing
The unsubscripted log is a dialect. School texts, engineering, and this page read base 10; advanced mathematics — analysis, number theory — reads base e; computer science reads base 2. The software side of the split is mapped in Calculator Conventions below.
CasesWithin one document the convention is fixed and usually silent — the danger is crossing documents: a formula lifted from an analysis text into an engineering context silently changes by the constant factor ln10.
Also writtenlgx — base 10 in Russian and European texts (the form this site's calculus pages may meet in imported formulas); lbx — the ISO mark for base 2; ldx — the older German logarithmus dualis.
Do not confuseA portable symbol. The three readings differ by constant factors, so graphs, slopes, and constants shift with the dialect — the formula looks identical and is not.
lnx
Ell-en of x; natural log of x
Latin, not English: logarithmus naturalis — which is why the letters run “ln” and not “nl”. The mark is credited to Irving Stringham, 1893. Base e always, no dialect, no exceptions — the one logarithm symbol that means the same thing everywhere.
CasesPowers attach to the operator the way trigonometry writes them: ln2x means (lnx)2, borrowing the squared-function convention — while the iterate is spelled out as lnlnx.
Also writtenlogex, on the rare occasions the base is spelled; logx itself, in the analysis dialect above.
Do not confuseln2x with ln(x2). The first squares the output, the second doubles it — ln(x2)=2lnx by the logarithm rules — and the two agree only at x=1 and x=e2.
Powers, Roots and Logarithms: Notation at a Glance
The marks from the notation cards across the powers, roots and logarithms pages: how each is read and what it means. Every group links to the full card on its page.
Powers, Roots and Logarithms: Notation at a Glance·/algebra/powersLearn Math Class
The Natural Logarithm
The natural logarithm is the logarithm with base e, where e≈2.71828. It is written ln(x), read "natural log of x," or occasionally loge(x).
The number e is not chosen arbitrarily. It emerges from the study of continuous growth: if a quantity grows at a rate proportional to its current size, e appears in the formula describing that growth. Compound interest computed with infinitely many compounding periods, radioactive decay, population dynamics — all involve e naturally.
THEOREM
In calculus, e has a unique property: the derivative of ex is ex itself. No other base produces this self-replicating behavior under differentiation. The natural logarithm inherits a corresponding property: the derivative of ln(x) is 1/x, the simplest possible form.
The values ln(1)=0 and ln(e)=1 follow from the general properties. Additional reference points: ln(2)≈0.693, ln(10)≈2.303. These approximations appear frequently in applications.
The Number e
The constant e is an irrational number approximately equal to 2.71828. Its decimal expansion continues without repeating: e=2.718281828459045...
One definition comes from compound interest. If one dollar earns 100% interest per year, compounded n times, the year-end balance is (1+1/n)n. As n increases — daily, hourly, every second, continuously — this expression approaches e:
The Number e
e=n→∞lim(1+n1)n
Did you know: Infinite compounding, finite money
One dollar at 100% grows to about 2.613 dollars compounded monthly, 2.715 daily and 2.718 every second. However often interest is added, the balance never passes e dollars.
The limit can be followed step by step. Compounding monthly means n=12, daily means n=365, and once every second means n=31,536,000, the number of seconds in a 365-day year. Each step multiplies the number of compounding periods many times over, and each one pays a little more than the step before. The question is how far this growth can go as n keeps increasing.
Another definition uses an infinite series:
The Number e
e=1+1+2!1+3!1+4!1+⋯=n=0∑∞n!1
The number appears throughout mathematics far beyond logarithms — in probability, complex analysis, differential equations, and number theory. Its ubiquity justifies elevating loge to the status of "natural."
Three independent definitions of e are now in play — the compound-interest limit, the infinite series, and the calculus characterization mentioned in the previous section. The table below puts them side by side; each produces the same irrational constant from a different starting point.
100% interest on $1 with infinitely many compounding periods
Infinite series
e = Σ 1⁄n! = 1 + 1 + 1⁄2! + 1⁄3! + ...
Taylor series of eˣ evaluated at x = 1
Calculus characterization
unique base a for which d⁄dx aˣ = aˣ
the exponential function that is its own derivative
The Number eLearn Math Class
Calculator Conventions
Scientific calculators and programming languages use varying conventions for logarithm notation, which can cause confusion.
Most scientific calculators have two buttons: log for the common logarithm (base 10) and ln for the natural logarithm (base e). This matches standard mathematical notation. To compute a logarithm with a different base, the change of base formula is required.
Some programming languages diverge. In Python, the math.log(x) function computes the natural logarithm by default, not the common logarithm. The common logarithm requires math.log10(x). Other languages follow similar patterns — always check documentation.
Spreadsheet software like Excel uses LOG(x) for common logarithm and LN(x) for natural logarithm, matching calculator conventions. The function LOG(x, base) allows arbitrary bases.
When in doubt, test with known values. If the software returns 1 for log(10), it uses base 10. If it returns 1 for log(e), it uses base e.
The log calculator has separate options for base 10, base e and base 2, plus a custom base, so you do not have to rely on these conventions.
trap: math.log defaults to natural log, not common
Excel / Google Sheets
LOG(x) or LOG10(x)
LN(x)
LOG(x, base) handles arbitrary bases
Calculator ConventionsLearn Math Class
When to Use Which
The choice between common and natural logarithms depends on context.
Use common logarithms when working with orders of magnitude, human-readable scales, or decimal-based measurements. The Richter scale for earthquakes, the decibel scale for sound intensity, and the pH scale for acidity all employ base 10. A change of 1 on the Richter and pH scales represents a factor of 10 — intuitive for decimal-system thinkers; on the decibel scale, a factor of 10 in intensity is a change of 10 decibels.
Use natural logarithms when working with continuous growth or decay, calculus, or theoretical derivations. Exponential models of the form Aekt pair naturally with ln. Solving e2x=5 is cleanest with natural logarithms: 2x=ln(5), so x=ln(5)/2.
For solving general exponential equations, either logarithm works. The equation 3x=7 can be solved as x=log(7)/log(3) or x=ln(7)/ln(3) — both yield the same numerical answer. Choose whichever is available or conventional in the given context.
Pitfall: Turning a quotient of logs into the log of a quotient
Computing x=log(3)log(7) as log(37)≈0.368 gives 30.368≈1.5, not 7. The two logarithms are divided as numbers: x≈0.4770.845≈1.771.
Either way, the answer is a fraction with one logarithm above the bar and another below it. Its value does not depend on which base is used, as long as the same base appears on top and on the bottom.
For a general exponential equation either logarithm works: the answer is one logarithm over another, and the base cancels as long as it is the same on top and below.
Converting Between Bases
The change of base formula from logarithm rules enables conversion between common and natural logarithms:
For example, log2(10)=ln(2)ln(10)=0.6932.303≈3.322. Verification: 23.322≈10.
Converting between common and natural logarithms directly uses ln(10)≈2.303:
Converting Between Bases
ln(x)=log(x)⋅ln(10)≈2.303⋅log(x)
Converting Between Bases
log(x)=ln(10)ln(x)≈2.303ln(x)
These conversions allow computation with any base using only the log and ln buttons available on standard calculators.
Comparing Graphs
The graphs of y=log(x) and y=ln(x) share the same basic shape but differ in steepness.
Both pass through (1,0) — all logarithms satisfy loga(1)=0. The common logarithm passes through (10,1); the natural logarithm passes through (e,1)≈(2.718,1). Both have vertical asymptotes at x=0 and extend to +∞ as x increases.
Since e<10, the natural logarithm reaches 1 at a smaller input value. This makes ln(x) grow faster initially and appear steeper for small x.
RULE
For any positive x>1, ln(x)>log(x) because the natural logarithm uses a smaller base.
Pitfall: Dividing by ln 10 instead of multiplying
Converting log(100)=2 to natural log as 2.3032≈0.868 makes ln(100) smaller than log(100). The factor multiplies: ln(100)≈2⋅2.303≈4.605.
The ratio between them is constant: ln(x)=ln(10)⋅log(x)≈2.303⋅log(x). The graphs are vertical stretches of each other. Multiplying every output of the common logarithm by ln(10) produces the natural logarithm.
One curve, two vertical scales
ln x and log x drawn together. Both cross the axis at (1, 0). The natural logarithm reaches 1 already at x = e ≈ 2.718, the common logarithm only at x = 10, so ln x is the steeper of the two. At x = 10 the dashed line shows the fixed ratio between them: log 10 = 1 while ln 10 ≈ 2.303, and the same factor 2.303 links their heights at every x.
Every logarithm is a vertical stretch of every other, by the change-of-base constant.
The two graphs share their shape and differ by one constant factor. The card shows the two curves and the formula that joins them.
Through (1,0) and (e,1)≈(2.718,1); steeper for small x
Use forcontinuous growth, calculus
Shared shapeBoth have a vertical asymptote at x=0 and extend to +∞; for x>1, ln(x)>log(x) because the natural logarithm uses the smaller base. Converting log(100)=2 multiplies by 2.303: ln(100)≈4.605.
Multiplying every output of the common logarithm by ln(10) produces the natural logarithm.
Side-by-Side Summary
Across base, key values, graph behavior, calculus role, applications, and conversion formulas, common and natural logarithms are two distinct tools that serve different purposes — but they live on the same family of curves and convert into each other through one constant. The table below pairs every aspect covered above so the two can be compared at a glance.
Three mistakes account for most wrong answers when common and natural logarithms are used for computing. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
1Turning a quotient of logs into the log of a quotient
An exponential equation such as 3x=7 is solved to x=log(3)log(7), and the fraction of two logarithms is then read as the logarithm of a fraction.
Start
x=log(3)log(7)
Wrong turn
Error here
=log(37)≈log(2.333)≈0.368
Right path
Each logarithm is evaluated on its own, and the two values are divided.
≈0.4770.845≈1.771
Why it happensThe quotient rule log(M)−log(N)=log(NM) turns a difference of logarithms into the logarithm of a quotient. A quotient of logarithms looks similar, but no rule simplifies it.
How to checkSubstitute the answer back. 30.368≈1.5, far from 7, while 31.771≈7.0.
2Flipping the change-of-base fraction
In loga(x)=ln(a)ln(x), the base and the argument swap places, so the logarithm of the base ends up on top.
Start
log2(10)
Wrong turn
Error here
=ln(10)ln(2)≈2.3030.693≈0.301
Right path
The argument goes on top, the base below.
=ln(2)ln(10)≈0.6932.303≈3.322
Why it happensBoth numbers appear in the formula with the same logarithm applied to them, and nothing in the notation shows which one belongs on top. The swapped fraction is itself a real logarithm, log10(2)≈0.301, so the wrong answer does not look strange.
How to checkEstimate first. 23=8 and 24=16, so log2(10) lies between 3 and 4. The wrong value fails at once: 20.301≈1.23.
3Dividing by ln 10 instead of multiplying
A common logarithm is converted to a natural logarithm, and the factor ln(10)≈2.303 is divided out instead of multiplied in.
Start
ln(100)
Wrong turn
Error here
=2.303log(100)=2.3032≈0.868
Right path
=log(100)⋅ln(10)≈2⋅2.303≈4.605
Why it happensThe two conversion formulas look alike. One multiplies by ln(10) and the other divides by it, and it is easy to recall the wrong one.
How to checkFor x>1, the natural logarithm is always larger than the common logarithm, because its base is smaller. The wrong value 0.868 is smaller than log(100)=2, so it cannot be right. The right value passes a second test as well: e4.605≈100.
All three slips put a number in the wrong place: a quotient of two logarithms is merged into one logarithm, the argument and the base trade places in the change-of-base fraction, and ln(10) divides where it should multiply. An estimate made before the calculation catches each of them. Knowing that log2(10) lies between 3 and 4, or that ln(x) is larger than log(x) for x>1, rules out the wrong values at a glance, and raising the base to the answer confirms the right one.
Skills You Should Learn
Each skill opens its step-by-step method page.
Algebra methods
Evaluate a logarithmAsk "which exponent?", use the key values, or change the base for a calculator.
Change the base of a logarithmSingle ruleA log whose base your calculator does not have, or two logs with different bases in one problem: log210, log5x.
It depends on the field, and the three readings disagree. School texts and engineering read base 10; analysis and number theory read base e; computer science reads base 2. Within one document the convention is fixed and usually left unstated. The hazard is crossing documents, where a formula lifted from an analysis text into an engineering context silently shifts by a factor of ln10.Read more →
Does logbx+1 mean logb(x+1)?
+
No. Like sinx, the logarithm binds only to what immediately follows it, so logbx+1 reads as (logbx)+1. At x=9 in base 10 that is about 1.954, while log10(9+1) is exactly 1. Once the argument is a sum the parentheses are obligatory.Read more →
What does ln2x mean?
+
It means (lnx)2, the output squared. The superscript attaches to the operator, borrowing the squared-function convention from trigonometry, where sin2x behaves the same way. Repeated application gets spelled out instead, as lnlnx. Note that ln2x and ln(x2) are different quantities: the second doubles rather than squares.Read more →
Why is the natural logarithm written ln and not nl?
+
Because the letters are Latin rather than English: logarithmus naturalis, so the l leads. The mark is credited to Irving Stringham in 1893. Unlike a bare log, it carries no dialect at all, meaning base e in every field, which makes it the one logarithm symbol you can move between documents without checking first.Read more →
How can a logarithm tell you how many digits a number has?
+
A whole number has one more digit than the integer part of its common logarithm. A number with d digits is at least 10d−1 and below 10d, so its logarithm is at least d−1 and below d. For 2100, log(2100)=100⋅log(2)≈30.1, so 2100 has 31 digits, found without writing it out.Read more →
Is ln(x) always larger than log(x)?
+
No, only for x>1. Since ln(x)=ln(10)⋅log(x)≈2.303⋅log(x), the natural logarithm is the common one stretched by 2.303. For x>1 both are positive and ln(x) is larger; at x=1 both are 0; for 0<x<1 both are negative and ln(x) is the more negative, as in log(0.1)=−1 against ln(0.1)≈−2.303.Read more →
Does compounding interest more often make the balance grow without limit?
+
No. One dollar at 100% for a year grows to (1+n1)n dollars with n compounding periods: about 2.613 monthly, 2.715 daily and 2.718 every second. The balance rises as n increases, by less each time, and never passes e≈2.71828, the limit of (1+n1)n. That limit is one of the standard definitions of e.Read more →