Logarithm Calculator

Natural log (ln), common log (log₁₀), binary log, or any base—with steps.

Natural Log (ln)
Common Log (log₁₀)
Binary Log (log₂)
Custom Base
Step-by-Step

Logarithm Calculator

Calculate logarithms with any base including natural log (ln) and common log (log₁₀)

Quick Examples

What a logarithm is

logb(x) = y means by = x: the exponent that turns base b into x. Defined for x > 0; base must be positive and not 1.

Napier introduced logs in the early 1600s to speed multiplication. Today they still turn products into sums and show up in growth, scales, and algorithms.

ln: base e ≈ 2.718 (calculus, continuous growth)

log / log₁₀: base 10 (pH, orders of magnitude)

log₂: base 2 (bits, binary search depth)

Rules

logb(1) = 0
logb(b) = 1
logb(bx) = x
blogb(x) = x
logb(xy) = logb(x) + logb(y)
logb(x/y) = logb(x) − logb(y)
logb(xn) = n × logb(x)

logb(x) = logc(x) / logc(b)

Change of base: usually ln(x)/ln(b) or log₁₀(x)/log₁₀(b) on a calculator.

Where logs show up

  • pH = −log₁₀[H⁺]; dB = 10 log₁₀(P₁/P₀); Richter uses log amplitude
  • Finance: continuous compounding and log returns ln(P₁/P₀)
  • CS: O(log n) algorithms, entropy in bits (log₂), tree height
  • Solving: if logb(x) = c then x = bc; combine logs before converting

Always check domain after algebra—arguments must stay positive, or you pick up extraneous roots.

Frequently Asked Questions

Why no log of negatives?

No real power of a positive base is negative. Complex logs exist but are multi-valued; stick to x > 0 for real calc.

ln vs log?

ln is always base e. Bare “log” means base 10 in many applied fields and natural log in some math texts—check the context.

Why “natural” log?

Because d/dx ln(x) = 1/x and ex is its own derivative—handy in calculus and continuous growth models.

Logs and exponentials?

Inverses: b^(logb(x)) = x and logb(bx) = x.

Fractional or negative bases?

Bases between 0 and 1 are allowed (decreasing function). Negative bases are avoided in elementary real math.

Related mathematical tools

Related tools

Related tools

Related Number Tools

Interest Calculator

Calculate simple and compound interest with detailed breakdowns. Perfect for loans, investments, savings, and financial planning with year-by-year analysis.

Leading/Trailing Zeros Remover

Remove unnecessary leading and trailing zeros from numbers while preserving mathematical value. Clean up data, normalize numbers, and improve readability.

Leap Year Checker

Check if any year is a leap year with our comprehensive calculator. Learn leap year rules, see examples, and understand the calendar system with detailed explanations.

Linear Regression Calculator

Perform linear regression analysis with our free online calculator. Find relationships between variables, calculate R-squared, confidence intervals, and make predictions with comprehensive statistical insights.

List Primes in Range - Prime Number Generator Tool

Generate all prime numbers within any range using efficient algorithms. Features Sieve of Eratosthenes, prime statistics, gap analysis, and export options for mathematical research.

Magic Square Generator

Generate magic squares of any size using various algorithms. Explore the mathematical beauty of squares where all rows, columns, and diagonals sum to the same value.

Median Finder - Calculate Middle Value & Percentiles

Find the median (middle value) of any dataset with detailed quartile analysis. Free online median calculator with step-by-step explanations.

Mode Calculator - Find Most Frequent Values & Statistical Mode

Calculate the mode (most frequent value) in datasets. Detect unimodal, bimodal, and multimodal distributions with frequency analysis and visualization.

Multiplication Table Generator

Generate multiplication tables for any number with customizable ranges and formats. Perfect for education, learning, and mathematical reference with visual patterns.

Universal Number Base Converter - Convert Between Any Number Bases (2-36)

Convert numbers between any bases from 2 to 36. Support for binary, octal, decimal, hexadecimal, and custom bases. Perfect for computer science and mathematics.