LOG function

Returns the logarithm of a number to the base you specify.



Number     is the positive real number for which you want the logarithm.

Base     is the base of the logarithm. If base is omitted, it is assumed to be 10.


The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.

  2. Select the example in the Help topic.

    Note   Do not select the row or column headers.

    Selecting an example from Help

    Selecting an example from Help

  3. Press CTRL+C.

  4. In the worksheet, select cell A1, and press CTRL+V.

  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.








Description (Result)


Logarithm of 10 (1)

=LOG(8, 2)

Logarithm of 8 with base 2 (3)

=LOG(86, 2.7182818)

Logarithm of 86 with base e (4.454347)

Applies To: Excel 2007

Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language