Explore tools ↗
Log Calculator | Calculate Logarithms with Any Base | ToolsByMeh
Home / All tools / Math / Log Calculator
Free online calculator

Log Calculator

Calculate the logarithm of a positive number using any valid base. Find common logarithms, natural logarithms, or enter a custom base and get a clear result.

Calculate a logarithm

Enter a positive number and choose or enter a base greater than 0 and not equal to 1.

The number must be greater than 0.
Result

What is a logarithm?

A logarithm is the exponent needed to raise a base to a particular number. For example, log₁₀(100) = 2 because 10² = 100. A log calculator makes it quick to evaluate this relationship for common bases or a base you choose.

Logarithm formula

The basic relationship is:

logb(x) = y means by = x

Here, b is the base, x is the number, and y is the logarithm. For real-number results, x must be positive, and b must be positive and different from 1.

How to use this log calculator

  1. Enter the positive number you want to evaluate.
  2. Choose base 10, natural log, base 2, or Custom base.
  3. If you choose Custom base, enter a base greater than 0 and not equal to 1.
  4. Select Calculate log to see the answer and the logarithm expression.

Common logarithms and natural logarithms

A common logarithm uses base 10 and is often written log(x). A natural logarithm uses the mathematical constant e, approximately 2.71828, and is written ln(x). Base 2 logarithms are common in computing and information theory.

ExpressionMeaningResult
log₁₀(100)10 to what power equals 100?2
ln(e)e to what power equals e?1
log₂(8)2 to what power equals 8?3
log₃(81)3 to what power equals 81?4

Change of base formula

If your calculator does not have a key for the base you need, use the change of base formula to convert it to common or natural logarithms:

logb(x) = log(x) ÷ log(b) = ln(x) ÷ ln(b)

This formula works for positive x and positive b where b is not 1.

Related math tools

For other number questions, visit the Mean, Median & Mode Calculator or use the Percentage Calculator. Browse the All Tools for more free calculators.

Frequently asked questions

How do I calculate a logarithm?

Ask what exponent makes the base equal the number. For example, log₂(8) = 3 because 2³ = 8.

What is log base 10?

A common logarithm uses 10 as its base. For example, log₁₀(1000) = 3.

What does ln mean?

ln is the natural logarithm, which uses e as its base.

Can a logarithm have a negative result?

Yes. If the input is between 0 and 1 with a base greater than 1, the logarithm is negative. For example, log₁₀(0.1) = −1.

Why must the base be greater than 0 and not equal to 1?

These conditions make the logarithm well-defined as the inverse of an exponential function over the real numbers.

+÷ ToolsByMeh · Free online tools and calculators for everyday needs.Explore all tools