๐Ÿ“œ

Log Calculator

Calculate logarithms with any base.

๐Ÿ“œ

Logarithm

Choose a base and enter a positive number. The result is the exponent: by = x means logb(x) = y.

Result
log10(100) = 2

The exponent y such that by = x.

๐Ÿ“œ

Inverse proof

Logarithm and exponent are inverses:

102 = 100

Check: 102 โ‰ˆ 100.000000

Log scale

On a log scale, equal steps represent equal ratios. Below: values 1โ€“32 โ€” linear spacing (equal gaps) vs log spacing (equal ratio steps).

Tick positions โˆ logโ‚‚(value); on a linear scale 32 would be 32ร— farther than 1.

Using the Log Calculator

Use the calculator above: choose common log (base 10), natural log (base e), binary log (base 2), or custom base, and enter a positive number. Trusted by students and educators for precalculus and STEM. Definitions (characteristic, mantissa), log laws, and change of base are in the article below. All calculations run locally.

Workflow Tips

Common log (base 10)

Select "Common log" and enter a positive number; used in pH, decibels, and orders of magnitude.

Natural log (base e)

Select "Natural log" and enter a positive number; essential for growth/decay and calculus.

Binary log (base 2)

Select "Binary log" and enter a positive number; used in computer science and bit depth.

Custom base

Select "Custom base" and enter base (positive, โ‰  1) and number; the article below has the change of base formula and the tool shows the steps.

Log Calculator: Common, Natural, Binary & Custom Base

Free log calculator: common log, natural log, log base 2, and custom base. Change of base formula steps, calculate ln(x) with steps. Logarithm and exponent inverse; characteristic and mantissa. Trusted by students and educators. No sign-upโ€”all calculations run locally.

What This Calculator Does & Who It's For

Calculator Purpose & Ideal Users

  • What You'll Get:
    Result: logb(x) = y. Inverse proof: Displays by = x. Change of base: For custom base, shows logb(x) = ln(x) / ln(b) with numeric steps. Domain validation: Explains when the number or base is invalid (x โ‰ค 0, base โ‰ค 0 or base = 1). Log scale: Small visual of logarithmic spacing.
  • Ideal Users & Keywords:
    High volume: log calculator, natural log calculator, log base 2. Long tail: change of base formula steps, calculate ln(x) with steps, log base 2 solver, logarithm calculator with steps. Students, teachers, and anyone working with pH, decibels, or algorithms. Free online, no sign-up.
  • Scope & Limits:
    Positive numbers only (x > 0). Base must be positive and not equal to 1. Results within JavaScript floating-point range. All calculations run in your browser; no data is sent to servers.
This log calculator computes logarithms for base 10 (common log), base e (natural log), base 2 (binary log), and any custom base. It shows the result (up to 10 decimal places), the inverse proof (by = x), and for custom base the change of base formula steps using ln(x) / ln(b).

What Is a Logarithm? Inverse of Exponentiation

A logarithm answers: "To what power must we raise the base to get this number?" So
logโกb(x)=y\log_b(x) = y
means
by=xb^y = x
For example, logโ‚โ‚€(100) = 2 because 10ยฒ = 100. The common log uses base 10 (written log or logโ‚โ‚€); the natural log uses base e (โ‰ˆ 2.718), written ln. Logarithms and exponents are inverses: logb(by) = y and blog_b(x) = x. For "What is log base e?" and "Why is log(1) always 0?", see the FAQ above

Common Log, Natural Log, Binary Log, Custom Base

Common log (base 10): Used in pH scales (pH = โˆ’logโ‚โ‚€[Hโบ]), decibel measurements, and orders of magnitude. Natural log (base e): Essential for growth/decay (e.g. continuous compounding) and calculus (derivative of ln(x) is 1/x). Use the calculator to calculate ln(x) with steps for any positive x. Binary log (base 2), or log base 2: Primary in computer scienceโ€”bits, information theory, and algorithms. Custom base: Use the change of base formula: logb(x) = ln(x) / ln(b). The calculator shows these steps when you select "Custom base."

Characteristic and Mantissa

In decimal form, a logarithm can be split into characteristic (integer part) and mantissa (fractional part). For example, logโ‚โ‚€(150) โ‰ˆ 2.176: the characteristic is 2 (so 10ยฒ โ‰ค 150 < 10ยณ) and the mantissa is 0.176. Historically, log tables (e.g. John Napier's) listed mantissas; you found the characteristic from the size of the number. This calculator gives the full decimal result; the integer part is the characteristic and the remainder is the mantissa.

John Napier and Log Tables

John Napier (1550โ€“1617) published the first tables of logarithms, which turned multiplication into addition and division into subtractionโ€”enormously simplifying calculation before electronic computers. Napier's work used a base related to 1/e; later common logarithms (base 10) became standard for hand calculation. Today we use natural logarithms (base e) in calculus and science. This log calculator gives instant results for any base; the article explains the change of base formula so you can relate different bases.

Three Fundamental Log Laws: Product, Quotient, Power

Product rule:
logโกb(xy)=logโกb(x)+logโกb(y)\log_b(xy) = \log_b(x) + \log_b(y)
โ€”the log of a product is the sum of the logs. Quotient rule:
logโกb(x/y)=logโกb(x)โˆ’logโกb(y)\log_b(x/y) = \log_b(x) - \log_b(y)
โ€”the log of a quotient is the difference of the logs. Power rule:
logโกb(xn)=nโ‹…logโกb(x)\log_b(x^n) = n \cdot \log_b(x)
โ€”the log of a power brings the exponent down. These follow from the definition by = x and the laws of exponents. Use this calculator to compute single logarithms; the inverse proof box reinforces the relationship b^y = x

Change of Base Formula

To compute log_b(x) using only natural or common log:
logโกb(x)=lnโก(x)lnโก(b)\log_b(x) = \frac{\ln(x)}{\ln(b)}
So you can find any logarithm with a calculator that has ln or log. Select "Custom base" in this log calculator to see the change of base formula steps applied to your base and number. For a quick summary, see the FAQ "What is the change of base formula?" above

Log Calculator FAQ

? What is log base e?

Log base e is the natural logarithm, written ln(x). The base e (Euler's number, โ‰ˆ 2.718) is the natural choice for growth, decay, and calculus. So ln(x) = loge(x). For example, ln(e) = 1 because eยน = e. Select "Natural log (base e)" in the calculator to compute ln(x).

? Can you have a negative log base?

No. Logarithms are defined only for a positive base not equal to 1. If the base were negative or zero, the exponential function by would not be well-behaved for all real y (e.g. negative base with fractional exponent gives non-real results). Base 1 is excluded because 1y = 1 for every y, so there is no unique exponent. This calculator requires base > 0 and base โ‰  1.

? Why is log(1) always 0?

Because bโฐ = 1 for any positive base b โ‰  1. The logarithm asks: "To what power must we raise the base to get this number?" So logb(1) = 0 means bโฐ = 1. That holds by definition of zero exponent. So logโ‚โ‚€(1) = 0, ln(1) = 0, and logb(1) = 0 for any valid base.

? How do you convert an exponential equation to a logarithmic one?

If by = x, then logb(x) = y. The base b stays the base, the result x becomes the argument of the log, and the exponent y becomes the value of the log. Example: 10ยฒ = 100 โ†’ logโ‚โ‚€(100) = 2. The calculator's "Inverse proof" box shows this relationship for your result.

? What is the change of base formula?

To evaluate log_b(x) using another base (e.g. 10 or e):
logโกb(x)=lnโก(x)lnโก(b)\log_b(x) = \frac{\ln(x)}{\ln(b)}
So you can compute any log with a calculator that only has ln or logโ‚โ‚€. Select "Custom base" in this calculator to see the change of base formula steps
๐Ÿ’ก
Mathematical Reference Note

Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.

Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.

Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.

ยฉ 2026 CalcRegistry Reference Last System Check: FEB 2026Free Online Utility Tools