LOG Function in Microsoft Excel: Examples, Pitfalls & Compatibility
LOG in Microsoft Excel: calculate a logarithm in an explicit base, with base 10 used when omitted. Includes worked examples and application-specific cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: Use LOG in Microsoft Excel to calculate a logarithm in an explicit base, with base 10 used when omitted. The official LOG reference is the source for the function definition and platform-specific rules described below.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official LOG reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=LOG(number, [base])
number (required): A strictly positive real value.
base (optional): The logarithm base; the documented default is 10. For a real logarithm use a positive base other than 1.
Square brackets mark optional arguments; do not type those brackets into the example formulas. Examples use English function names, comma argument separators and decimal points. Adapt formula separators to your workbook settings, not punctuation inside quoted text.
When to use it
Use LOG when a problem names a base, such as the number of repeated doublings. The result is the exponent needed to produce the input from that base. Do not assume that LOG means the natural logarithm in a spreadsheet.
Three worked examples
Each example is independent. Where input cells are listed, enter those values first; otherwise the formula is self-contained. Expected outputs are independently checked calculations or documented error expectations, not captured results from Microsoft Excel.
Example 1: Count powers of two
=LOG(32,2)
Expected result: 5.
Two raised to the fifth power is 32. The result is an exponent, not a quotient.
Example 2: Observe the default base
=LOG(1000)
Expected result: 3.
The omitted base is 10, and 10 cubed is 1000.
Example 3: Use an input between zero and one
=LOG(0.01,10)
Expected result: -2.
Ten to the power -2 equals 0.01, so the negative result is valid.
Put it to work safely
Write the chosen base explicitly in reusable formulas so readers do not need to remember the default. Verify the result by raising the same base to the returned exponent. Use simple exact-power inputs as baseline tests before working with measured values or interpreting a noninteger logarithm as a whole count of stages.
Common mistakes and fixes
The answer seems to use the wrong base. An omitted base defaults to 10. Supply the base or use LN for the natural logarithm.
A base of one is entered. Every real power of one is one, so this does not define an ordinary inverse logarithm. Validate the base.
A negative logarithm is labelled an error. The output may be negative for a valid positive input or a valid base below one. Inspect the mathematical rule, not only the sign.
Microsoft Excel-specific notes
Microsoft explicitly documents a default base of 10. Supplying the base is still clearer for a workbook that another person must inspect or maintain. See the vendor reference for the current definition.
Excel and Google Sheets comparison
Both detailed references use base 10 by default. A base below one is mathematically valid, but precision and exceptional cases need a native check when the result drives a critical workflow.
Compare the LOG guide for Google Sheets and its official documentation. Having a guide in both libraries establishes two documented references, not a certificate of identical behavior across releases, locales or file conversions.
Related guides
Evidence and testing scope
Editorial verification: Official references retrieved on 2026-10-12. The three worked cases are included in this release’s reproducible Python checking suite. It checks the stated arithmetic, calendar or text model and the expected documented error classification; it is not the Microsoft Excel calculation engine. No native application run, UI screenshot, maximum-size benchmark or cross-version certification is claimed. Review the editorial testing standards before relying on a formula in a critical workbook.