Science & health

Log in Maths Meaning: What a Logarithm Actually Is

In maths, "log" is short for logarithm — the power you raise a base to in order to get a particular number. This guide explains the notation, the rules, and why the base matters.

THE MEANING, AT A GLANCE

In maths, log is shorthand for logarithm: the exponent you must raise a base to in order to get a given number. Because 2³ = 8, log₂ 8 = 3. In general, log_b x = y means b^y = x. So a logarithm answers the question "what power produces this number?"

A logarithm is an exponent, not a button

The core idea is a reversal. If you know that 10³ = 1000, then the logarithm tells you the 3. Written out, log₁₀ 1000 = 3. The small lowered number is the base — here, 10 — and the result of the log is the power you need. A few more: log₅ 25 = 2 because 5² = 25; log₃ (1/9) = −2 because 3⁻² = 1/9.

The conversion runs in both directions: log_b x = y is exactly the same statement as b^y = x. Getting fluent at flipping between those two forms is most of what early logarithm lessons ask you to do. Two conditions keep the definition tidy: the base b must be positive and not equal to 1, and the number x must be positive. A base of 1 never changes value, and no real power of a positive base produces a negative result.

Which base does a bare "log" mean?

This is where most confusion starts, because the same three letters carry different defaults in different rooms. In school maths and on many calculators, log with no subscript means base 10, the "common logarithm". In calculus, physics and much university mathematics, log with no subscript usually means the natural logarithm, base e (about 2.71828), which is written ln on calculators. In computer science, log often means base 2, since binary splitting is the natural framework there.

Standards bodies have suggested tidier notations — lg for base 10, lb for base 2, ln for base e — but everyday writing has not settled. The practical rule is to check the convention stated in your textbook or course, and to write the base explicitly when you are the one communicating. "log₁₀" leaves no one guessing.

The rules that make logarithms useful

Logarithms turn multiplication into addition. That single trick explains why they were invented and why they still appear in so many formulas. The three central rules are: log(xy) = log x + log y; log(x/y) = log x − log y; and log(xⁿ) = n · log x. Two handy anchors follow from the definition: log_b 1 = 0, because anything to the power zero is 1, and log_b b = 1.

The change-of-base rule, log_b x = (log x) / (log b) with any consistent base, lets you compute a log in a base your calculator lacks. One warning worth remembering: log(x + y) is not log x + log y. The rules apply to products, quotients and powers, not sums, and every rule assumes the quantities inside are positive.

Why logarithms turn up on scales and in algorithms

Logarithms compress enormous ranges into manageable numbers. The pH scale is −log₁₀ of hydrogen-ion concentration, so a drop of one pH unit means ten times the concentration. Decibels work the same way for sound intensity, and the magnitude scale for earthquakes is logarithmic too. Whenever a quantity can span many orders of magnitude, a log scale lets you plot it on one readable axis.

They also describe anything that grows or shrinks by a fixed factor per step: compound interest, radioactive decay, cooling, population doubling. In computing, a binary search over a sorted list of a million items needs about 20 comparisons, because log₂ 1,000,000 is roughly 20 — the reason algorithms are described as running in log time.

Log, ln, log in, logarithm: telling the terms apart

Logarithm is the concept; log is the abbreviation, the notation and often the calculator key. Ln is specifically the natural logarithm. Logarithmic describes something measured or expressed on a log scale. None of these has anything to do with "log in" as in signing into an account, or with a written log or logbook, which are separate words with their own history. A search for "log in maths meaning" almost always means the mathematical function, not a password screen.

A related distinction: logarithm and exponential are inverses. "10 to the power 3 gives 1000" and "log base 10 of 1000 gives 3" are two views of one relationship. If you can write one, you can write the other.

Reading logs correctly in textbooks and code

On a scientific calculator, the log key is usually base 10 and the ln key is base e, so the same number yields different answers: log 1000 = 3, while ln 1000 ≈ 6.908. In programming the trap repeats. Python's math.log(x) returns the natural logarithm, with math.log10 and math.log2 available for other bases. Spreadsheet LOG functions often default to base 10 unless you supply a second argument.

So when a result looks off by a constant factor, check the base before assuming an arithmetic mistake. The history is worth knowing too: logarithms were introduced by John Napier in the early seventeenth century, and Henry Briggs developed the base-10 tables that made them a practical calculating aid for centuries.

FROM DEFINITION TO EVERYDAY LIFE

What it looks like in real life

01

Counting doublings in a lab culture

Suppose a bacterial population doubles at regular intervals and you want to know how many doublings it takes to go from a small starting count to eight times that count. Since 2³ = 8, log₂ 8 = 3: three doublings. To reach a hundred times the starting count, you would need log₂ 100 ≈ 6.64 doublings — the log turns a question about repeated multiplication into a single division-style calculation.

02

pH in a swimming pool

Pool pH is defined as the negative base-10 log of hydrogen-ion concentration. A reading of 7.0 and a reading of 6.0 differ by one unit, which means the water at pH 6 has ten times the hydrogen-ion concentration of the water at pH 7. That is why small-looking pH shifts matter so much, and why the scale is written logarithmically rather than linearly.

03

Checking the base on a calculator

Type 1000 and press log: you get 3, because 10³ = 1000. Press ln instead and you get roughly 6.908, because e^6.908 ≈ 1000. Same number, different base, different exponent. If an answer surprises you, confirm which key you used before redoing the whole problem.

A few questions you might have

Does "log in maths" mean logging in to something?+

No. In a maths context, log is short for logarithm, a function relating a base and an exponent. "Log in" as a phrase about accounts is unrelated and comes from a different word altogether.

Is "log" base 10 or base e?+

It depends on the setting. School courses and calculator log keys usually mean base 10; university maths and physics often use log for the natural logarithm, base e; computer science often means base 2. Check your textbook's stated convention, or write the base as a subscript to be unambiguous.

Can you take the logarithm of zero or a negative number?+

Not within the real numbers. A positive base raised to any real power stays positive, so no real exponent produces zero or a negative result. As x approaches zero from above, log x dives toward negative infinity. Complex-number extensions exist, but they behave differently and are handled in advanced courses.

Why does log of 1 equal zero?+

Because any permitted base raised to the power zero equals 1. Since b⁰ = 1 for every valid base b, the definition of a logarithm immediately gives log_b 1 = 0, whatever base you are using.

Go a little deeper

References and further reading for this guide.

Merriam-Webster: LogarithmEncyclopaedia Britannica: LogarithmNIST Digital Library of Mathematical Functions
BEHIND THE WORDS

Theirpedia Editorial

We make words and ideas easier to understand, with thoughtful explanations and examples from everyday life. Our publishing process uses AI-assisted writing; explore the references to learn more.

Our editorial approach

Every guide in Theirpedia is created through dedicated research and editorial review. Cultural and semantic context may vary across traditions and perspectives. Read our editorial policy.

KEEP THE CURIOSITY GOING

There’s more to discover.

Science & health01

What the Sign Means in Maths: Symbols, Signs and Notation

The word sign in maths can mean a plus or minus attached to a number, a written symbol such as = or %, or a function's pattern of positive and negative values. Context decides which meaning applies.

8 min readExplore meaning ↗
Science & health02

What 'x' Means in Maths: The Variable, the Unknown, and More

The letter x in maths is rarely just a letter. Most often it marks a variable or an unknown value—something that can change or that you need to find. It also appears as a coordinate, a multiplication sign, and a name for functions or inputs, and each role h...

7 min readExplore meaning ↗
Science & health03

Operate a Calculator: Meaning, Skills, and Context

Operating a calculator involves more than just pressing buttons; it requires understanding keypad layout, mathematical syntax, and interpreting digital results.

4 min readExplore meaning ↗