Logarithms & exponentials
Log Calculator – Calculate Log Base, Natural Log & More
Enter any number and base to instantly calculate its logarithm. This log calc supports common log (base 10), natural log (base e), binary log (base 2), and any custom log base, with step-by-step inverse proof and change of base formula.
Logarithm
Choose a base and enter a positive number. The result is the exponent: by = x means logb(x) = y.
The exponent y such that by = x.
Inverse proof
Logarithm and exponent are inverses:
Check: 102 ≈ 100.000000
Worked Examples
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. Definitions (characteristic, mantissa), log laws, and change of base are in the article below. All calculations run locally.
Worked Examples
Common log example
Natural log example
Log Calculator: Common, Natural, Binary & Custom Base
Free log calculator: common log (base 10), natural log ln(x), binary log base 2, and custom base. Inverse proof on every result; change-of-base numeric steps in Custom mode. Characteristic, mantissa, and log laws. No sign-up; runs 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).
- 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.
How to Use This Calculator
- Log Type Selector:Choose Common log for base-10 calculations (pH, decibels), Natural log for base-e (calculus, growth and decay), Binary log for base-2 (computer science, information theory), or Custom base for any other positive base.
- Number Field:Enter any positive number (x > 0). Logarithms are undefined for zero and negative inputs; the calculator validates this and explains why if you enter an invalid value.
- Custom Base Field:Appears when Custom base is selected. Enter a positive base other than 1. The result uses the change-of-base formula and shows the numeric substitution step by step.
- Inverse Proof:Confirms the result by displaying b raised to the power y equals x. This reinforces the fundamental logarithm–exponent relationship and serves as a built-in verification.
What Is a Logarithm? Inverse of Exponentiation
Common log (base 10): orders of magnitude
Common logarithm values (quick reference)
| Expression | Value |
|---|---|
| log₁₀(1) | 0 |
| log₁₀(10) | 1 |
| log₁₀(100) | 2 |
| log₁₀(1000) | 3 |
| ln(1) | 0 |
| ln(e) | 1 |
| log₂(1) | 0 |
| log₂(2) | 1 |
| log₂(8) | 3 |
What is the natural log (ln)?
How do you calculate log base 2 (binary log)?
Custom base: change of base in the tool
Characteristic and Mantissa
John Napier and Log Tables
Three Fundamental Log Laws: Product, Quotient, Power
Change of Base Formula
Log Calculator FAQ
How do I use the log base calculator for a custom base?
What does "log base" mean?
What is log base e?
Can you have a negative log base?
Why is log(1) always 0?
How do you convert an exponential equation to a logarithmic one?
What is the change of base formula?
How do you calculate log base 2?
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.