Knowledge base / Excel

LOG in Excel: choosing the base and interpreting the result

I will read LOG as a question about an exponent, show how to choose the base and explain why some inputs need a data decision before transformation.

Kajo RudzińskiPublished Updated 6 min read

Growing clusters of cubes on platforms beside a staircase with equal steps

When I see LOG, I read it as a question about an exponent: which power of the chosen base produces the supplied number? For eight with base two, the answer is three because two cubed is eight. I start with that meaning before choosing a formula or deciding whether a logarithmic transformation suits the analysis. A numeric result needs an interpretation, and the base is part of that interpretation.

LOG syntax and availability

The function is named LOG in both English and Polish Excel. Microsoft’s documentation covers Microsoft 365, Excel 2024, 2021, 2019, 2016 and the web version, among others. The number is required and the base is optional:

=LOG(number,[base])

Square brackets indicate an optional argument in the syntax description. Do not type them in an ordinary formula. If A2 contains the number and B2 the base, use =LOG(A2,B2). Omitting the base selects 10. This is not a natural logarithm by default. The Polish documentation confirms the same default and the local function syntax.

The English examples use commas between arguments and a decimal point. The Polish examples use semicolons and a decimal comma. Your spreadsheet’s regional settings determine the appropriate notation. If a formula cannot be accepted, first inspect its syntax. A separator problem and an invalid mathematical input are different issues; I would investigate them separately rather than assign one universal error code to both.

Interpret the result through powers

These are small mathematical examples, not observations from an organisation. Simple powers let you follow the result without a helper calculation. Microsoft’s example also includes eight with base two.

Formula Question about a power Mathematical result
=LOG(100) Which power of 10 gives 100? 2
=LOG(8,2) Which power of 2 gives 8? 3
=LOG(1,2) Which power of 2 gives 1? 0
=LOG(0.1,10) Which power of 10 gives 0.1? -1
=LOG(16,4) Which power of 4 gives 16? 2

The first and last rows have equal results but answer different questions. I would therefore include the base in the column description. “Logarithm” alone can be insufficient when comparing reports. A result of three with base two does not mean three percent or three units of the original quantity. It is an exponent relative to the selected base. Keeping that distinction visible prevents a mathematically correct result from acquiring an unintended business meaning.

Check the argument and base

OpenStax describes real logarithms using a positive argument and a positive base other than one. Zero and negative inputs lie outside that domain. Base one is excluded because every power of one remains one, so it cannot supply the required inverse exponential function.

A positive fraction is allowed. In the table, 0.1 gives -1 because ten raised to minus one is one tenth. A negative logarithm does not imply a negative input. I distinguish the sign of the argument from the sign of the result. Confusing them can cause someone to reject valid observations or try to repair an answer that was already correct. The small example makes that distinction easier to inspect than a long list of approximate values.

If a column contains zeros, negatives, text or missing observations, stop at the meaning of the data. Is zero a real measurement, a missing-value convention or an import mistake? The answer determines the next action. I would not replace everything with one or take absolute values simply to obtain a numeric output. Such a change can remove a formula problem while also changing the analytical question. Document the data decision separately from the formula used afterwards.

A mechanism receiving groups of cubes and producing an orderly series of steps

Choose LOG, LOG10 or LN deliberately

LOG10 fixes the base at ten. LN calculates the natural logarithm, whose base is e. LOG allows an explicit base. For the same positive argument, LOG(A2) and LOG10(A2) therefore describe the same base-ten logarithm. LN(A2) asks a different question.

If a model specification calls for a natural logarithm, do not omit the base in LOG and expect that result. If it calls for base two, supply two explicitly. I prefer a readable formula and a column explanation over an unexplained abbreviation. Nor should a heading labelled LOG2 be treated as evidence of an Excel function with that name. The base-two expression in this entry is LOG(number,2).

Counting doublings requires a defined model

Consider a synthetic process starting with one unit and exactly doubling at every step. After one step there are two units, after two there are four, and after three there are eight. =LOG(8,2) gives three: the step count in this deliberately simplified model. For a target of sixteen, the count is four. The interpretation works because we specified both the starting point and the rule of change before calculating.

Do not apply that interpretation automatically to any rising series. With a different initial value, the question concerns the ratio of the final and initial values. If growth is not constant, the logarithm of the final number alone cannot describe the path. It also cannot establish that the same steps will happen in the future. The function evaluates an expression; the model assumptions need separate justification. A correct expression cannot provide the missing evidence for those assumptions.

Taking logarithms does not guarantee a normal distribution or a valid statistical model either. I would avoid using “normalisation” as a promise that any transformed series becomes ready for analysis. Define the purpose first and consider whether the transformation preserves the meaning needed. When presenting results, name the scale so that a reader does not interpret differences in logarithms as differences in the original values. That explanation belongs beside the result, not only in the author’s private notes.

A small exercise before a larger workbook

For base two, write down 1, 2, 4 and 8. First predict the exponents: 0, 1, 2 and 3. Then write formulas with an explicit base and explain each row through powers. Finally add zero and an entry representing missing data. Decide how each should be described in the analysis. This connects syntax with interpretation without pretending to produce a real forecast or treating missing information as an ordinary measurement.

For base ten alone, see LOG10. For a model using e, EXP provides related context. I would start by writing a sentence explaining what the expected answer is an exponent of. If I cannot write that sentence, a syntactically valid formula has not finished the analytical work.

Key takeaways

Which base does LOG use when the second argument is omitted?

The default base is 10. LOG(100) asks which power of 10 produces 100.

Can the result of LOG be negative?

Yes. With a base greater than one, a positive argument below one has a negative logarithm. For example, LOG(0.1,10) has the mathematical result -1.

Does LOG normalise every dataset?

No. The transformation changes the scale, requires positive arguments and needs an analytical purpose. Do not add one merely to make a zero input acceptable.

AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.

Kajo Rudziński

Newsletter KajoData

Let’s keep in touch.

I write about data analysis, learning and changing careers. My newsletter and the sign-up form are in Polish. If that works for you, I’d be glad to see you there.