logarithm calculator

Scientific Calculators

Instantly solve complex logarithmic and exponential equations with step-by-step mathematical proofs and real-world context.

Smart Presets

Result (y)

log10(100)
=2
(100, 2)

How we solved it

log10(100) = 2⟺102 = 100

Using the Change of Base formula:
log10(100)
=
ln(100)ln(10)
=2

Real-World Context

Base-10 is used in the Richter scale (earthquakes), pH levels (acidity), and Decibels (sound).

How to Use the Logarithm Calculator (Step-by-Step)

Master logarithmic calculations, change of base formulas, exponential proofs, and logarithmic curves across any base.

01

Select a Base Preset or Enter a Custom Base

Choose one of the quick preset buttons: Base 10 (common log), Base 2 (binary log), or Base e (natural log ln). Alternatively, enter any positive real number except 1 into the Base field.

02

Input the Number (Argument x)

Type the positive value (x > 0) whose logarithm you want to evaluate. The calculator dynamically warns you if a non-positive or undefined number is supplied.

03

Read the High-Precision Result

The computed value y = log_b(x) displays immediately with high decimal precision, alongside a formatted mathematical expression in standard mathematical typography.

04

Examine the Exponential Form Equivalence

Review the proof engine below the result, confirming the fundamental identity: log_b(x) = y ⟺ b^y = x, establishing the inverse link between logarithms and powers.

05

Verify via Change of Base Formula

Inspect the step-by-step natural log derivation: log_b(x) = ln(x) / ln(b), demonstrating how modern scientific engines evaluate arbitrary bases algebraically.

06

Explore Real-World Context & Base-2 Visualizer

Read practical applications in physics, chemistry, or algorithms. For integer base-2 powers, watch the interactive doubling/halving cascade visualize algorithmic depth.

Frequently Asked Questions (FAQ)

Mathematical foundations, logarithmic laws, domains, bases, and real-world scientific applications.

QWhat is a logarithm and what is its mathematical definition?

A logarithm is the inverse operation of exponentiation. The logarithm of a positive number x to a base b (where b > 0 and b ≠ 1) is the exponent y to which b must be raised to produce x: log_b(x) = y if and only if b^y = x. For example, log₁₀(100) = 2 because 10² = 100.

QWhat is the difference between Natural Log (ln), Common Log (log₁₀), and Binary Log (logā‚‚)?

Common Log (log₁₀ or lg) uses base 10 and is standard in engineering, decibels, and pH. Natural Log (ln) uses Euler's mathematical constant e ā‰ˆ 2.71828 and governs calculus, compound interest, and exponential growth/decay. Binary Log (logā‚‚ or lb) uses base 2 and is foundational in computer science, bit representation, and information theory.

QWhy can't the base of a logarithm be 1, 0, or negative?

If the base were b = 1, then 1 raised to any power is always 1 (1^y = 1), so log₁(x) cannot be uniquely defined for any x ≠ 1 and is indeterminate for x = 1. If b = 0, 0^y = 0 for positive y and undefined for negative y. Negative bases lead to non-real, oscillating complex numbers for fractional powers (e.g., (-2)^0.5 = √-2), making continuous real logarithms impossible.

QWhy are logarithms of zero and negative numbers undefined in real arithmetic?

For any positive base b > 0, raising b to any real power y always results in a strictly positive number (b^y > 0). As y approaches negative infinity, b^y approaches zero but never reaches it; hence, log_b(0) = -āˆž. Negative arguments require complex numbers involving imaginary components (e.g., ln(-1) = iĻ€ via Euler's identity e^(iĻ€) = -1).

QHow does the Change of Base formula work?

The Change of Base theorem states that log_b(x) = log_c(x) / log_c(b) for any valid positive base c. Most calculators and programming languages use natural logarithms: log_b(x) = ln(x) / ln(b). For example, logā‚‚(32) = ln(32) / ln(2) = 3.465736 / 0.693147 = 5.

QWhat are the core logarithmic properties and algebraic laws?

Key algebraic rules include: Product rule log_b(xy) = log_b(x) + log_b(y); Quotient rule log_b(x/y) = log_b(x) - log_b(y); Power rule log_b(x^k) = k Ā· log_b(x); Identity rules log_b(b) = 1 and log_b(1) = 0; and Inverse rules b^(log_b(x)) = x and log_b(b^x) = x.

QWhere are logarithms used in real-world science and engineering?

Logarithms compress vast physical ranges into manageable scales: the Richter scale measures earthquake magnitude exponentially; the decibel (dB) scale measures sound pressure and signal attenuation; pH measures hydrogen ion concentration in chemistry; the stellar magnitude scale measures star brightness; and the Arrhenius equation models chemical reaction rates.

QHow is the binary logarithm (logā‚‚) used in computer science?

Binary logarithms dictate digital data representation and algorithmic complexity. A data structure with N elements searched by binary search takes O(logā‚‚ N) comparison steps (halving the search space each step). Similarly, the number of bits required to store an integer N is ⌊logā‚‚ NāŒ‹ + 1, and Shannon entropy uses logā‚‚ to quantify information in bits.

logb(x) = y ⟺ by = x
  • Base (b): The number being raised to a power.
  • Argument (x): The value we want to find the logarithm of.
  • Result (y): The power to which the base must be raised.

What is logarithm calculator?

Instantly solve complex logarithmic and exponential equations with step-by-step mathematical proofs and real-world context. The Advanced Logarithm Calculator simplifies abstract algebra by letting you choose Smart Presets like Base 10 (Common), Base 2 (Binary), or Base e (Natural). Once you input the Base (b) and the Number (x), the engine immediately outputs the result alongside a dynamic visual graph. It also eliminates guesswork through the How we solved it section, which demonstrates the underlying exponential relationship (by = x) and applies the Change of Base formula.
Practical Calculation Example (Acoustics Engineering)
Consider an audio engineer calibrating a sound system for a concert. Sound intensity is measured on a logarithmic scale because human hearing is non-linear. The engineer needs to calculate the decibel increase for an amplifier pushing 100 times the original acoustic power. Using the Smart Presets, they select Base 10 and input the Number (x) as 100. The engine instantly returns log10(100) = 2. The Real-World Context panel confirms that Base-10 is the standard for Decibels. Multiplying the result by 10 gives a precise 20-decibel increase.
Logarithmic Bases
The calculator applies the following mathematical rules based on the chosen base:
Mathematical BaseScientific NotationPractical Application
Common LogarithmBase 10 / log10(x)Used for Richter scales, pH levels, and acoustics.
Natural LogarithmBase e / ln(x)Essential for calculating continuous compound interest and exponential decay.
Binary LogarithmBase 2 / log2(x)The foundation of computer science, data entropy, and algorithm analysis.
Core Formulalogb(x) = y  ↔  by = xThe absolute mathematical law linking logarithms to exponents.

History and Origin

The invention of logarithms is one of the most critical breakthroughs in scientific history. In 1614, the Scottish mathematician John Napier published Mirifici Logarithmorum Canonis Descriptio. Before the invention of mechanical calculators, astronomers and navigators spent months doing manual multiplications. Napier’s logarithms transformed complex multiplication and division into simple addition and subtraction, effectively accelerating the scientific revolution by drastically reducing calculation errors in celestial navigation.