UseCalcPro
Home
MathFinanceHealthConstructionAutoPetsGardenCraftsFood & BrewingToolsSportsMarineEducationTravel
Blog
  1. Home
  2. Math

Logarithm Calculator

Compute log₁₀, ln, log₂, and custom base logarithms

log₁₀ Result

2.000000

log₁₀

2.0000

ln

4.6052

log₂

6.6439

Must be a positive number (x > 0)

All Logarithm Values

log₁₀(100)

2.000000

ln(100)

4.605170

log₂(100)

6.643856

Change of Base

log10(100) = ln(100) / ln(10) = 4.605170 / 2.302585 = 2.000000

Formula: log_b(x) = ln(x) / ln(b)

Properties

10^log₁₀(100)100
e^ln(100)100
2^log₂(100)100

Log Rules

log(a × b) = log(a) + log(b)
log(a / b) = log(a) − log(b)
log(a^n) = n × log(a)
log_b(1) = 0
log_b(b) = 1

Formulas Used

Change of Base Formula

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

Convert a logarithm from any base to natural log (or any other base). This is the foundation for computing arbitrary-base logarithms.

Where:

b= The base of the logarithm (b > 0, b ≠ 1)
x= The number to take the logarithm of (x > 0)
ln= Natural logarithm (base e ≈ 2.71828)

Product Rule

log_b(x × y) = log_b(x) + log_b(y)

The logarithm of a product equals the sum of the logarithms. This turns multiplication into addition.

Where:

x= First factor (x > 0)
y= Second factor (y > 0)
b= Logarithm base

Power Rule

log_b(x^n) = n × log_b(x)

The logarithm of a power equals the exponent times the logarithm of the base value. This turns exponentiation into multiplication.

Where:

x= The base value (x > 0)
n= The exponent (any real number)
b= Logarithm base

Example Calculations

1Common Logarithm: log₁₀(100)

Inputs

Number100
Base10

Result

log₁₀(100)2

log₁₀(100) = 2 because 10² = 100. The common logarithm asks: what power of 10 gives 100?

2Natural Logarithm: ln(e³)

Inputs

Number20.0855 (e³)
Basee

Result

ln(e³)3

ln(e³) = 3 by definition. The natural logarithm base e is the inverse of the exponential function, so ln(e^x) = x.

3Binary Logarithm: log₂(256)

Inputs

Number256
Base2

Result

log₂(256)8

log₂(256) = 8 because 2⁸ = 256. In computing, this means 256 = 2⁸, so 8 bits can represent 256 different values (0–255).

Frequently Asked Questions

Q

What is a logarithm and how does it work?

A logarithm answers the question: what exponent do I need to raise the base to in order to get a given number? For example, log₁₀(1000) = 3 because 10³ = 1000. Logarithms are the inverse of exponentiation.

  • log₁₀(100) = 2 because 10² = 100
  • log₂(256) = 8 because 2⁸ = 256
  • ln(e) = 1 because e¹ = e
  • log_b(1) = 0 for any base b
  • log_b(b) = 1 for any base b
ExpressionValueBecause
log₁₀(1000)310³ = 1000
log₂(64)62⁶ = 64
ln(e²)2e² ≈ 7.389
log₅(125)35³ = 125
Q

What is the difference between log, ln, and log₂?

log (or log₁₀) uses base 10 and is common in science and engineering. ln (natural log) uses base e ≈ 2.71828 and is fundamental in calculus and continuous growth. log₂ uses base 2 and is essential in computer science and information theory.

  • log₁₀: Base 10, used in pH scale, decibels, Richter scale
  • ln: Base e ≈ 2.718, used in calculus, compound interest, population growth
  • log₂: Base 2, used in bits, binary data, algorithm complexity
  • Any log can be converted using change of base: log_b(x) = ln(x)/ln(b)
TypeBaseCommon Use
log (log₁₀)10Science, pH, decibels
lne ≈ 2.718Calculus, growth models
log₂2Computer science, bits
Q

What is the change of base formula?

The change of base formula lets you calculate any logarithm using a different base: log_b(x) = ln(x) / ln(b) or equivalently log_b(x) = log(x) / log(b). This is essential because most calculators only have log₁₀ and ln buttons.

  • Formula: log_b(x) = ln(x) / ln(b)
  • Equivalent: log_b(x) = log₁₀(x) / log₁₀(b)
  • Example: log₃(81) = ln(81)/ln(3) = 4.394/1.099 = 4
  • Works for any positive base b ≠ 1
CalculateUsing lnResult
log₃(27)ln(27)/ln(3) = 3.296/1.0993
log₅(625)ln(625)/ln(5) = 6.438/1.6094
log₇(343)ln(343)/ln(7) = 5.838/1.9463
Q

What are the key logarithm rules and properties?

The three main logarithm rules are the product rule (log(ab) = log(a) + log(b)), quotient rule (log(a/b) = log(a) - log(b)), and power rule (log(a^n) = n·log(a)). These simplify complex expressions into basic arithmetic.

  • Product rule: log(a × b) = log(a) + log(b)
  • Quotient rule: log(a / b) = log(a) − log(b)
  • Power rule: log(a^n) = n × log(a)
  • Identity: log_b(b) = 1
  • Zero: log_b(1) = 0
RuleFormulaExample
Productlog(ab) = log(a)+log(b)log(6) = log(2)+log(3)
Quotientlog(a/b) = log(a)-log(b)log(5) = log(10)-log(2)
Powerlog(a^n) = n·log(a)log(8) = 3·log(2)
Q

Where are logarithms used in real life?

Logarithms appear throughout science and daily life. The Richter scale measures earthquake magnitude logarithmically (each whole number is 10x more powerful). Decibels measure sound on a log scale. The pH scale for acidity is a negative log. In finance, logarithms calculate compound interest periods.

  • Richter scale: magnitude 7 is 10x stronger than 6
  • Decibels: 90 dB is 10x louder than 80 dB
  • pH scale: pH 3 is 10x more acidic than pH 4
  • Finance: time to double money = ln(2)/ln(1+rate)
  • Computer science: binary search is O(log₂ n)
ApplicationLog TypeExample
Richter Scalelog₁₀M7 = 10× M6
Decibelslog₁₀10·log(P/P₀)
pH−log₁₀pH = −log[H⁺]
Binary Searchlog₂O(log₂ n) steps

Understanding Logarithms: A Complete Guide

1

What Logarithms Actually Compute

log₁₀(1000) = 3, ln(e²) = 2, and log₂(256) = 8 — each logarithm answers the same structural question: what exponent applied to the base produces the given number? The notation log_b(x) = y means bʸ = x. This inverse relationship with exponentiation is what makes logarithms indispensable for solving exponential equations.

Three bases dominate applied mathematics. The common logarithm (log₁₀) underpins the Richter scale, decibel scale, and pH scale — all systems where each unit represents a 10× change. The natural logarithm (ln, base e ≈ 2.71828) appears throughout calculus because d/dx[ln(x)] = 1/x, the simplest derivative of any logarithm. The binary logarithm (log₂) quantifies information in bits: 8 bits encode 2⁸ = 256 possible values.

The change of base formula log_b(x) = ln(x) / ln(b) lets you compute any logarithm using a single base. This is the core of how our calculator handles custom bases: log₇(343) = ln(343)/ln(7) = 5.838/1.946 = 3. The Exponent Calculator can verify results by computing the reverse: 7³ = 343.

Each logarithm finds the exponent that produces the given number
ExpressionValueEquivalent Exponential
log₁₀(10,000)410⁴ = 10,000
ln(20.086)3e³ ≈ 20.086
log₂(1024)102¹⁰ = 1,024
log₅(3125)55⁵ = 3,125
2

The Three Core Logarithm Rules

The product rule, quotient rule, and power rule convert complex expressions into simpler arithmetic. The product rule states log(ab) = log(a) + log(b), turning multiplication into addition. Before electronic calculators, scientists used log tables to multiply large numbers by adding their logarithms — a technique that made Kepler’s planetary calculations feasible in 1627.

The power rule log(aⁿ) = n × log(a) is particularly powerful. To solve 2ˣ = 1024, take log₂ of both sides: x = log₂(1024) = 10. To find how long money takes to double at 7% annual interest, solve 1.07ⁿ = 2: n = ln(2)/ln(1.07) = 0.693/0.0677 = 10.24 years. The Scientific Notation Calculator works with logarithmic principles for the same reason — scientific notation is essentially base-10 logarithmic representation.

The quotient rule log(a/b) = log(a) − log(b) completes the triad. Combined, these rules reduce expressions like log(x³y²/z) to 3log(x) + 2log(y) − log(z). This decomposition is the foundation of log-linear regression in statistics and the reason audio engineers measure sound intensity in decibels (dB = 10 × log₁₀(P/P₀)) rather than raw power ratios.

Three Fundamental Logarithm RulesProduct Rulelog(a × b) = log(a) + log(b)Quotient Rulelog(a / b) = log(a) − log(b)Power Rulelog(aⁿ) = n × log(a)Combined Example:log(x³y²/z) = 3log(x) + 2log(y) − log(z)Multiplication → AdditionExponentiation → Multiplication
3

Real-World Logarithmic Scales

The Richter scale assigns earthquake magnitude as log₁₀ of seismograph amplitude. A magnitude 7 earthquake releases 31.6× more energy than magnitude 6 (10¹·⁵ per step). The 2011 Tōhoku earthquake (M9.1) released approximately 1.99 × 10¹⁷ joules — about 600 million times the energy of the Hiroshima bomb.

Decibels measure sound intensity: dB = 10 × log₁₀(P/P₀), where P₀ = 10⁻¹² watts/m² is the threshold of hearing. A 90 dB factory floor is 10× more intense than 80 dB office noise. Sustained exposure above 85 dB causes hearing damage, which is why OSHA limits industrial exposure to 90 dB for 8 hours.

The pH scale in chemistry is defined as pH = −log₁₀[H⁺], where [H⁺] is hydrogen ion concentration in moles per liter. Pure water has pH 7 ([H⁺] = 10⁻⁷ M). Stomach acid at pH 1.5 is about 316,000× more acidic than water. Each 1-unit pH decrease represents a 10× increase in acidity. The Percentage Calculator can help convert between logarithmic and percentage changes when comparing concentrations.

Logarithmic scales compress enormous ranges into manageable numbers
ScaleFormulaEach Unit =Range
Richterlog₁₀(amplitude)10× amplitude, 31.6× energy0–10
Decibels10·log₁₀(P/P₀)10× power per 10 dB0–194 dB
pH−log₁₀[H⁺]10× acidity per unit0–14
Stellar magnitude−2.5·log₁₀(flux)2.512× brightness per unit−26 to +30
4

Logarithms in Computer Science

Binary search runs in O(log₂ n) time — searching 1 billion sorted items takes at most 30 comparisons because log₂(10⁹) ≈ 30. This efficiency makes logarithmic algorithms practical even for massive datasets. Balanced binary search trees maintain O(log n) insert, delete, and lookup by ensuring tree height stays proportional to log₂(n).

Information theory defines entropy in bits using log₂. The information content of an event with probability p is −log₂(p) bits. A fair coin flip carries 1 bit (−log₂(0.5) = 1). A fair die roll carries log₂(6) ≈ 2.585 bits. Shannon entropy H = −Σ pᵢ log₂(pᵢ) measures the average information content of a source, setting the theoretical limit on lossless compression.

Sorting algorithms have a proven lower bound of O(n log n) comparisons for comparison-based sorts. Merge sort and heap sort achieve this bound exactly. The factor of log n arises because n items can be arranged in n! ways, and log₂(n!) ≈ n log₂(n) comparisons are needed to distinguish among all possible permutations.

Binary Search: O(log₂ n) StepsSearching 1,024 sorted items takes at most 10 comparisons1,024 items512 items (step 1)256 (step 2)128 (3)→ 64 → 32 → 16 → 8 → 4 → 2 → 1log₂(1024) = 1010 halving steps maxlog₂(1,000,000,000) ≈ 301 billion items: 30 stepsEach step halves the search space: n → n/2 → n/4 → ... → 1Total steps = log₂(n)

The number of digits in a number n equals floor(log₁₀(n)) + 1. A 64-bit integer can store values up to 2⁶⁴ − 1 ≈ 1.84 × 10¹⁹, which has floor(log₁₀(1.84 × 10¹⁹)) + 1 = 20 digits.

Related Calculators

Exponent Calculator

Calculate powers, roots, and exponential expressions

Square Root Calculator

Find square roots and simplify radical expressions

Scientific Notation

Convert between standard and scientific notation

Percent Calculator

Calculate percentages, increases, and decreases

Triangle Calculator

Calculate triangle area, perimeter, and semi-perimeter from base and height. Shows step-by-step solutions using standard formulas and Heron's formula.

Distance Calculator

Calculate the distance between two points in 2D or 3D using the distance formula. Shows squared distance, midpoint, components, and step-by-step work.

Related Resources

Exponent Calculator

Calculate powers and roots

Scientific Notation Calculator

Convert between standard and scientific notation

Square Root Calculator

Find square roots and nth roots

Fraction Calculator

Add, subtract, multiply and divide fractions

Last Updated: Mar 26, 2026

This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.

UseCalcPro
FinanceHealthMath

© 2026 UseCalcPro