1. Home
  2. Functions
  3. Math
  4. LOG

LOG function

Returns the logarithm of a number to the base you choose (10 when left out).

Syntax

=LOG(number, [base])

Arguments

ArgumentRequiredDescription
numberRequiredA positive number
baseOptionalThe base of the logarithm (10 when left out)

How to use LOG

LOG takes 1 required argument and 1 optional argument. Type =LOG( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=LOG(10)Result 1
=LOG(8, 2)Result 3
=LOG(86, 2.7182818)Result 4.454347343

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.