Excel
LOG function in Excel
Returns the logarithm of a number to a specified base
=LOG(number, [base])LOG syntax and parameters
Two arguments, one required.
- numbernumberRequired
The positive real number for which you want the logarithm.
- basenumberOptional
The base of the logarithm. If base is omitted, it is assumed to be 10.
LOG examples
Formulas you'll actually reuse.
How many halvings — a base-2 logarithm:
=LOG(B2, 2)Result
10Base 10 when no base is given — orders of magnitude:
=LOG(B2)Result
5
LOG in Google Sheets
Same name — your formula ports as-is.
Try LOG in the playground
Edit the example — nothing to install.
Preloaded with the LOG formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ABSReturns the absolute value of a numberMathGoogle Sheets
- ACOSReturns the arccosine of a numberMathGoogle Sheets
- ACOSHReturns the inverse hyperbolic cosine of a numberMathGoogle Sheets
- ACOTReturns the arccotangent of a numberMathGoogle Sheets
- ACOTHReturns the hyperbolic arccotangent of a numberMathGoogle Sheets
- AGGREGATEReturns an aggregate in a list or databaseMathNo Google Sheets equivalent