Math / calculator

Log Calculator

Evaluate base-10, natural and custom-base logarithms of positive numbers with real-domain validation and intentional precision.

Calculator

Calculator

Calculate a real logarithm.

Select base 10, natural log or an entered positive base other than 1. The number must be positive; unsupported non-finite results are rejected.

Inputs and options

Your result

Enter details to see the result.

Complete the inputs and calculate to see the main result and its supporting breakdown.

Example

Worked example

Example inputs

Positive number
100
Logarithm
Base 10

Calculation breakdown

log_b(x)=ln(x)/ln(b).

Example result

Logarithm

2

How to interpret the result

The result is the exponent that raises the selected base to the entered number. Negative results are valid for some positive numbers and bases; no complex result is produced.

How to use this calculator

  1. Enter the strictly positive number whose logarithm you need.
  2. Choose base ten, natural log or a valid custom base.
  3. Calculate the exponent and compare it with a power calculation if needed.

How it works

Formula

log_b(x)=ln(x)/ln(b).

Can a base be between zero and one?

Yes. A positive base below one is valid; the logarithm reverses sign relative to a base above one.

What this calculator does

Find the exponent that produces a positive value from a chosen base, including base ten and natural logarithms.

Inputs you will need

Some inputs appear only for the operation or shape you select.

Required or selected inputs

  • Positive number
  • Logarithm
  • Custom base

Assumptions

  • Both the number and base are positive. A logarithm base differs from one; natural logarithms use e.

Limitations

  • Floating-point real arithmetic excludes complex logarithms. Magnitudes extend to 10^300; bases extremely near one amplify error.

Useful next steps

Check a logarithm by raising its base to the returned exponent with Exponent Calculator.

See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.

Good to know

Frequently asked questions

How should I read the log result?

The result is the exponent that raises the selected base to the entered number. Negative results are valid for some positive numbers and bases; no complex result is produced.

Keep going