Skip to main content
math

Logarithm Calculator

Calculate logarithms with any base including common log (base 10), natural log (base e), and binary log (base 2). Essential for math, engineering, science, and computer science.

Reviewed by Christopher FloiedUpdated

This free online logarithm calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Logarithm Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Logarithm Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Logarithm Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Logarithm Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The Logarithm Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Calculate logarithms with any base including common log (base 10), natural log (base e), and binary log (base 2). Essential for math, engineering, science, and computer science. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About Logarithm Calculator

The Logarithm Calculator computes log base b of x for any base. Logarithms answer the question 'to what power must I raise b to get x?' — for example, log₁₀(1000) = 3 because 10³ = 1000. Logarithms are fundamental to mathematics, science, and engineering, appearing in pH calculations, earthquake magnitudes (Richter scale), sound levels (decibels), radioactive decay, financial calculations, and computer science algorithms. This calculator handles common log (base 10), natural log (base e ≈ 2.71828), binary log (base 2), and any custom base.

The Math Behind It

Logarithms are the inverse of exponentiation. If b^y = x, then log_b(x) = y. **Definition**: log_b(x) = y means b^y = x **Common Bases**: - **Base 10** (common log, 'log'): Used in engineering, pH, decibels - **Base e ≈ 2.71828** (natural log, 'ln'): Used in calculus, continuous growth, physics - **Base 2** (binary log, 'log₂'): Used in computer science, information theory **Fundamental Properties**: 1. **Product rule**: log(ab) = log(a) + log(b) 2. **Quotient rule**: log(a/b) = log(a) - log(b) 3. **Power rule**: log(a^n) = n·log(a) 4. **Change of base**: log_b(x) = log_c(x) / log_c(b) **Real-World Applications**: 1. **pH Scale**: pH = -log₁₀[H⁺]. A pH of 4 means [H⁺] = 10⁻⁴ = 0.0001 M. pH 3 is 10× more acidic than pH 4. 2. **Richter Scale**: Each whole number increase represents 10× amplitude and ~32× energy. A magnitude 8 earthquake releases 1000× the energy of a magnitude 6. 3. **Decibels**: Sound level = 10 × log₁₀(I/I₀). Every 10 dB increase = 10× the intensity. 80 dB is 10× louder than 70 dB in physical intensity. 4. **Moore's Law**: Transistor count doubles every ~2 years (exponential), so log gives linear relationship. 5. **Information Theory**: Bits of information = log₂(N) where N is number of possibilities. 6. **Compound Interest**: Time to double = ln(2)/ln(1+r). **Historical Significance**: Logarithms were invented by John Napier in 1614 as a tool to simplify multiplication and division of large numbers. By converting multiplication to addition (log(ab) = log(a) + log(b)), they made complex calculations feasible before calculators existed. The slide rule (1620s) used logarithmic scales to multiply by aligning rulers. Logarithm tables were standard references for scientists and engineers for 300+ years until electronic calculators replaced them.

Formula Reference

Change of Base

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

Variables: Any base can be computed from natural log

Worked Examples

Example 1: Common Log

Calculate log₁₀(1000).

Step 1:Ask: 10 to what power equals 1000?
Step 2:10^3 = 1000
Step 3:Therefore log₁₀(1000) = 3

log₁₀(1000) = 3 (exactly).

Example 2: Natural Log

Calculate ln(e^5).

Step 1:ln(e^5) = 5 × ln(e)
Step 2:ln(e) = 1
Step 3:Therefore ln(e^5) = 5

ln(e^5) = 5. The natural log 'undoes' the exponential function.

Common Mistakes & Tips

  • !Forgetting that logarithms are only defined for positive numbers. log(-5) is undefined in real numbers.
  • !Confusing log(a+b) with log(a) + log(b). They're different! log(a+b) doesn't simplify.
  • !Using 'log' without specifying the base. Context matters: in calculus, 'log' often means natural log; in engineering, base 10.
  • !Applying log rules incorrectly, like (log a)^2 = 2 log a. WRONG: log(a²) = 2 log a.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Why do we need logarithms?

Logarithms compress wide-ranging data into manageable scales, make multiplication into addition (easier to compute by hand), and solve exponential equations. They reveal underlying structure in data that grows exponentially (populations, money, earthquake energy, brightness of stars). Without logarithms, many scientific and engineering problems would be impossibly complex.

What's the difference between log, ln, and log₂?

They're all logarithms with different bases. 'log' typically means log₁₀ (common log, used in engineering and pH). 'ln' means log_e (natural log, used in calculus and physics where e ≈ 2.71828 appears naturally). 'log₂' is binary log, used in computer science. All are related by: ln(x) / ln(b) = log_b(x).

Why is e (≈ 2.71828) used as a base?

Because e is the unique base where the slope of the function e^x equals the function itself: d/dx[e^x] = e^x. This makes calculus involving e^x and ln(x) extraordinarily clean. e appears naturally in exponential growth, compound interest (continuously compounded), radioactive decay, and probability distributions — it's deeply connected to continuous change.

How did people calculate logs before calculators?

Using printed log tables! From 1614 to the 1970s, mathematicians used large reference books with pre-computed log values. For multiplication: (1) look up log of each number, (2) add the logs, (3) look up the antilog of the sum. Sliderules (logarithmic scales aligned mechanically) made this faster. Engineers carried slide rules until electronic calculators in the 1970s made them obsolete.