Enter the value and the log base.

✦
Introduction

Introduction

This logarithm calculator evaluates logarithms for a selected base and provides natural-log, common-log, and change-of-base calculations. It can also help check exponential equations.

A logarithm is defined only for a positive argument and a valid base. The base must be positive and cannot equal one in the usual real-number definition.

%
Definition

What is a logarithm?

A logarithm answers the question: to what power must a base be raised to produce a positive number? In log base b of x = y, the equivalent exponential statement is b raised to y = x.

The common logarithm uses base 10 and the natural logarithm uses base e. Other positive bases can be used when they are not one.

Logarithm formulas

Definitionlog_b(x) = y exactly when b^y = x

The logarithm and exponential forms express the same relationship.

Change of baselog_b(x) = ln(x) ÷ ln(b)

Change of base converts a logarithm into ratios of natural or common logarithms.

Logarithm inputs and bases must satisfy the domain conditions for the selected number system.

↗
How to use

How to use this calculator

  1. Enter a positive argument and a valid positive base other than one.
  2. Choose a base such as 10, e, or a custom base.
  3. Review the exact expression and decimal approximation.
  4. Use change of base when the original base is not a calculator shortcut.
  5. Check domain restrictions before using a logarithm in an equation.
▦
Worked examples

Examples

Example 01Common logarithm

What is log10(1000)?

    Example 02Natural logarithm

    What is ln(e²)?

      Example 03Change of base

      How can log2(7) be calculated?

        Example 04Logarithm of one

        What is log5(1)?

          Example 05Invalid argument

          What is log10(−4) over the real numbers?

            Example 06Solve an exponential equation

            How can 3^x = 20 be solved?

              ◎
              Result interpretation

              How to interpret the result

              A logarithm can be negative when a positive argument is between zero and one for a base greater than one. Decimal results are approximations unless an exact identity is available.

              Always read the base and argument together. Changing the base changes the value, even when the argument stays the same.

              !
              Common mistakes

              Common mistakes

              Using zero or a negative argument in a real logarithm.

              Using base one or a negative base in the usual real definition.

              Confusing log base 10 with natural log.

              Rounding before applying a logarithm in a later calculation.

              ◇
              Limits and special cases

              Limitations

              The calculator evaluates supported numeric logarithms and may not simplify every symbolic expression. Complex logarithms have branch conventions that require additional context.

              For scientific or engineering work, verify units, precision, base, and domain before relying on a result.

              ؟
              Frequently asked questions

              FAQ

              What does a logarithm mean?

              It is the exponent needed to raise a base to a given positive argument.

              What is ln?

              ln is the natural logarithm with base e.

              What is log without a base?

              The convention depends on context; many calculators use base 10, while some mathematical contexts use ln.

              Can the argument be negative?

              Not for a real logarithm; complex logarithms use additional conventions.

              Can the base be one?

              No. A base of one cannot produce different positive values through exponentiation.

              Why use change of base?

              It lets you calculate a logarithm with a base not directly provided by a calculator.

              Are logarithms inverse functions?

              Yes. Logarithms and exponentials with the same valid base undo each other.

              Why is my result rounded?

              Most logarithms are irrational, so the calculator displays a decimal approximation.

              Install this tool

              Add this tool to your device for quick access.