Log Calculator - Calculate Logarithms with Any Base Online

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

Updated: November 2025 • Free Tool

Log Calculator

Results

Logarithm Result
2
Expression log₁₀(100)
Natural Log (ln) 4.6052
Common Log (log₁₀) 2.0000
Verification 10² = 100 ✓

What is a Log Calculator?

A Log Calculator is a mathematical tool that calculates logarithms with any base. It supports common logarithms (base 10), natural logarithms (base e), and custom bases.

This calculator is perfect for:

  • Students - Algebra, calculus, and exponential equations
  • Scientists - pH calculations, decibel measurements, Richter scale
  • Engineers - Signal processing and information theory
  • Finance - Compound interest and growth rate calculations

For calculating powers and exponents with detailed step-by-step solutions, try our Exponent Calculator to handle positive, negative, and fractional exponents.

For advanced scientific functions including trigonometry and exponential calculations, use our Scientific Calculator to perform complex mathematical operations with DEG/RAD modes.

To calculate square roots, cube roots, and nth roots with verification, check our Root Calculator to find precise root values for any degree.

For solving quadratic equations with detailed solutions, explore our Quadratic Equation Solver to find roots using the quadratic formula.

How Log Calculator Works

The calculator uses the change of base formula:

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

Where:

  • x = The number (argument)
  • b = The base
  • ln = Natural logarithm (base e)

Common logarithms:

Common log: log₁₀(100) = 2
Natural log: ln(e²) = 2
Binary log: log₂(8) = 3

Key Logarithm Concepts

Common Log (log₁₀)

Base 10 logarithm. Used in science and engineering for scales like pH and Richter. If no base is written, base 10 is usually implied in these fields.

Natural Log (ln)

Base e logarithm (e ≈ 2.718). Fundamental in calculus for describing continuous growth and decay. It is the inverse of the exponential function e^x.

Binary Log (log₂)

Base 2 logarithm. Essential in computer science for measuring information in bits and analyzing algorithms (e.g., binary search complexity).

Log Properties

Key rules: log(ab) = log(a) + log(b), log(a/b) = log(a) - log(b), and log(a^n) = n·log(a). These turn multiplication into addition.

Logarithms in Nature & Science

Our senses and the physical world often operate on logarithmic scales, meaning we perceive changes in ratios rather than absolute differences.

Sound (Decibels): The decibel (dB) scale is logarithmic. A sound of 20 dB is 10 times more intense than 10 dB, and 30 dB is 100 times more intense. This matches how our ears perceive loudness.

Earthquakes (Richter Scale): An earthquake of magnitude 6 is 10 times stronger in amplitude than a magnitude 5, and releases about 31 times more energy.

Acidity (pH): The pH scale measures hydrogen ion concentration logarithmically. A pH of 3 is 10 times more acidic than a pH of 4.

The Inverse Relationship

Logarithms are the mirror image of exponents. Understanding one automatically helps you understand the other.

If 2³ = 8 (Exponential form), then log₂(8) = 3 (Logarithmic form).

This relationship allows us to solve for unknown exponents. For example, if you want to know how long it takes for your money to double at 5% interest, you need to solve for t in the equation 2 = (1.05)^t. Using logarithms: t = ln(2) / ln(1.05) ≈ 14.2 years.

History of Logarithms

Logarithms were invented in the early 17th century by John Napier, a Scottish mathematician. His goal was to simplify the tedious calculations required in astronomy and navigation.

By converting multiplication into addition (log(ab) = log a + log b), logarithms allowed astronomers to calculate planetary positions with much greater speed and accuracy. For over 300 years, until the invention of the computer, tables of logarithms were the most important tool in a scientist's arsenal.

Computer Science Applications

In the digital age, the binary logarithm (log₂) is king.

Bits and Bytes: log₂(N) tells you how many bits are needed to store N different values. For example, to store 256 different characters (ASCII), you need log₂(256) = 8 bits (1 byte).

Algorithms: The efficiency of many algorithms, like Binary Search, is measured in logarithmic time O(log n). This means that even if the data size doubles, the time to process it only increases by a small, constant amount.

How to Use This Calculator

1

Enter Number

Input a positive number (argument)

2

Select Base

Choose 10, e, 2, or enter custom base

3

Calculate

Click Calculate to see the logarithm result

4

View All Logs

See natural log, common log, and verification

Benefits of Using This Calculator

  • Multiple Bases: Calculate log with base 10, e, 2, or any custom base.
  • Comprehensive Results: Shows natural log and common log simultaneously.
  • Verification: Confirms result by showing base^result = number.
  • Real-Time Calculation: Instant results as you type values.

Factors That Affect Your Results

1. Argument Value

Must be positive. Logarithms of zero or negative numbers are undefined.

2. Base Value

Base must be positive and not equal to 1. Different bases give different results.

3. Scale

Logarithms compress large ranges into smaller scales (e.g., Richter, decibels).

4. Precision

Results are rounded to avoid floating-point errors in calculations.

Log Calculator - Calculate logarithms with any base including natural log and common log
Professional logarithm calculator interface with number and base selection, showing results for natural log, common log, and verification.

Frequently Asked Questions (FAQ)

Q: What is a logarithm?

A: A logarithm is the inverse operation of exponentiation. log_b(x) asks 'what power must b be raised to in order to get x?' For example, log₁₀(100) = 2 because 10² = 100.

Q: What is the difference between log and ln?

A: Log typically refers to the common logarithm (base 10), while ln is the natural logarithm (base e ≈ 2.71828). Natural logarithms are used in calculus and exponential growth problems.

Q: Can I calculate logarithms with custom bases?

A: Yes, this calculator supports any positive base (except 1). Enter your desired base and number to calculate the logarithm using the change of base formula.

Q: Why can't I calculate the log of negative numbers?

A: Logarithms of negative numbers are not defined in real numbers. The argument (number) must be positive for real logarithm calculations.