Google Sheets LOG Function: Syntax, Examples & Tips

The LOG function calculates the logarithm of a number with a specified base, useful for mathematical analysis and data transformation.
Google Sheets
LOG(value, base)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a LOG Google Sheets Formula?
  3. A Practical Example
  4. LOG Formula
  5. Result of the Formula
  6. Why Use LOG?
  7. Key Takeaways:
  8. Example use case

Parameters

value:
The number for which you want to calculate the logarithm. This can be a positive number or a reference to a cell containing a number.

base:
The base of the logarithm. This can be a positive number or a reference to a cell containing a number. If omitted, the base defaults to 10.

What is a LOG Google Sheets Formula?

The LOG function in Google Sheets is a mathematical function used to calculate the logarithm of a number to a specified base. It is particularly useful in various fields such as finance, science, and engineering where logarithmic calculations are essential. The LOG function can help in understanding exponential growth, calculating compound interest, and analyzing data that spans several orders of magnitude.

In simpler terms, the LOG function allows you to find out how many times you need to multiply a base number to get another number.

A Practical Example

Imagine you are analyzing the growth of a population over several years and you have the following data:

Population Data Table:

YearPopulation
11000
22000
34000
48000

You want to determine the logarithmic growth of the population each year based on a base of 2.

LOG Formula

To achieve this, you would use the LOG function as follows:

Google Sheets
=LOG(B2, 2)

In this formula:

  • B2 is the cell containing the Population for the respective year.
  • 2 is the base of the logarithm you want to use.

Result of the Formula

When you apply the LOG formula to the Population Data Table, the output would look like this:

YearPopulationLogarithmic Growth
110009.96578
2200010.96578
3400011.96578
4800012.96578

This table shows the logarithmic growth of the population for each year based on a base of 2.

Why Use LOG?

The LOG function is beneficial because it simplifies complex calculations involving exponential growth and decay. It allows you to analyze data trends and make informed decisions based on logarithmic scales. Additionally, logarithmic transformations can help in normalizing data, making it easier to visualize and interpret.

Key Takeaways:

  • LOG: A mathematical function that calculates the logarithm of a number to a specified base.
  • Applications: Useful in finance, science, and engineering for analyzing exponential growth and decay.
  • Data Analysis: Helps in normalizing data and understanding trends across various orders of magnitude.
  • Common Use Cases: Ideal for population studies, financial modeling, and any scenario where logarithmic calculations are necessary.

The LOG function is an essential tool for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a sales report in Column A with total sales figures. To analyze growth, you can use the LOG formula to calculate the logarithm of each sales figure in Column B. This helps in visualizing sales trends and making data-driven decisions.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.