Logarithm Calculator (log, ln)

Calculate logarithms with any base (log, ln).

Save

Inputs

Your values stay on this device.

Results

Log Result
Natural Log (ln)4.61

Report

Export and share

Document

Copy and share

Assumptions

  • The value being logged must be greater than 0.
  • The base must be greater than 0 and cannot equal 1.
  • Results are returned in real numbers only.

Sensitivity preview

Value (x) -10%: Log Result 1.95

Value (x) Current: Log Result 2

Value (x) +10%: Log Result 2.04

Related Tools

View All

About this Log Calculator

Logarithms are the inverse operation to exponentiation. They answer the question: 'To what power must we raise the base to get this number?' They are widely used in science to measure scales like pH, the Richter scale (earthquakes), and decibels (sound).

Who this calculator is for

  • Students learning inverse operations, exponents, or logarithm rules.
  • Scientists and engineers working with scales that grow by powers.
  • Anyone checking log, ln, or custom-base results quickly.

When to use it

  • Use this calculator to solve for the exponent in a power equation.
  • Use it for common log, natural log, or custom-base log problems.
  • Use it when you need to work with exponential growth or scale-based measurements.

How to use this calculator

  1. Enter the Value (x) you want to find the log of.
  2. Enter the Base (Common default is 10).
  3. The result shows both the Log in that base and the Natural Log (ln).

Key assumptions

  • The value being logged must be greater than 0.
  • The base must be greater than 0 and cannot equal 1.
  • Results are returned in real numbers only.

Accuracy and testing

Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.

View accuracy page

How this calculator works

The logarithm $\log_b(x) = y$ is equivalent to $b^y = x$. * Common Log: Base 10 (written as $\log x$). * Natural Log: Base $e$ (written as $\ln x$). * Binary Log: Base 2 (used in computer science).

Inputs explained

Value (x)

The number you are analyzing. Must be greater than 0.

Base

The base of the logarithm. Common bases are 10, 2, and $e$ (approx 2.718). Must be positive and not equal to 1.

Understanding your results

The result is the exponent. For example, $\log_{10}(100) = 2$ because $10^2 = 100$.

Example scenarios

Base 10

Log(1000) base 10 = 3 (since $10^3 = 1000$).

Base 2

Log(16) base 2 = 4 (since $2^4 = 16$).

Natural Log

Ln(7.389) ≈ 2 (since $e^2 \approx 7.389$).

Key Features

  • Custom Base Support
  • Calculates ln simultaneously
  • Handles decimals

Tips & Best Practices

  • Logarithms turn multiplication into addition: $\log(ab) = \log(a) + \log(b)$.
  • They turn exponents into multiplication: $\log(a^n) = n \cdot \log(a)$.
  • You cannot take the log of a negative number or zero in the real number system.

Glossary of Terms

Natural Logarithm (ln)
A logarithm with base $e$ (Euler's number, ~2.71828).
Common Logarithm
A logarithm with base 10.
Exponential Growth
Growth whose rate becomes ever more rapid in proportion to the growing total number or size. The inverse of logarithmic growth.

Frequently Asked Questions

Why can't I calculate log(-1)?
In the real number system, there is no power to which a positive base can be raised to produce a negative number. $10^x$ is always positive.
What is 'e'?
Euler's number ($e \approx 2.71828$) is a mathematical constant that is the base of the natural logarithm. It appears frequently in calculus and growth modeling.
How do I calculate Log Base 2?
Enter 2 into the 'Base' field. Or, use the change of base formula: $\log_2(x) = \frac{\ln(x)}{\ln(2)}$.