Log Calculator

Calculate logarithms, antilogs, and missing bases with any valid base

Check Log Calculator

log10(100) = ?
Quick base:
Examples:

Logarithm Rules Reference

Product Rule

log_b(x × y) = log_b(x) + log_b(y)

Quotient Rule

log_b(x / y) = log_b(x) - log_b(y)

Power Rule

log_b(x^n) = n × log_b(x)

Change of Base

log_b(x) = log_c(x) / log_c(b)

Special Values

log_b(1) = 0   log_b(b) = 1

Inverse

b^(log_b(x)) = x   log_b(b^x) = x

About This Tool

Calculator Task Context

Use this calculator to solve logarithm questions where the base, input value, or logarithm result is the unknown.

Formula And Method Used

The calculator uses log_b(x) = ln(x) / ln(b), along with inverse exponential relationships, to solve and verify each mode.

Worked Example

  1. For log_2(32), ask what exponent turns 2 into 32.
  2. Since 2^5 = 32, log_2(32) = 5.

Common Mistakes And Limits

  • The log input value must be positive.
  • The base must be positive and cannot equal 1.
  • Remember that ln means base e, while log often means base 10 depending on context.

Related Calculators

Logarithm Calculator: Solve Any Logarithmic Equation with Three Flexible Modes

Our comprehensive logarithm calculator provides three powerful calculation modes that together can solve any logarithmic equation of the form log_b(x) = y by finding whichever of the three variables is unknown, given the other two. In the Find Log mode, you enter a base b and a value x, and the calculator computes y = log_b(x) using the appropriate mathematical function: Math.log10 for common logarithms (base 10), the natural logarithm function for base e, Math.log2 for binary logarithms, or the change of base formula log_b(x) = ln(x)/ln(b) for any custom base. The Find Value mode performs the inverse operation, computing the antilogarithm: given a base b and a logarithm result y, it calculates x = b^y, which is essential for converting logarithmic scale readings back to their original values, such as converting decibel measurements to power ratios or pH values to hydrogen ion concentrations. The Find Base mode solves for the base itself: given a value x and a logarithm result y, it computes b = x^(1/y), which is useful in situations where you need to determine what exponential growth rate produces a specific ratio over a given number of periods. Every calculation displays detailed step-by-step solutions showing the formula used, all intermediate computations, and a verification step that confirms the answer by substituting it back into the original equation. An interactive SVG logarithmic curve visualization plots the log function for the selected base, highlighting the calculated point on the curve with its exact coordinates. A comprehensive logarithm rules reference card displays the six most important identities including the product rule, quotient rule, power rule, change of base formula, special values, and inverse relationships.

Understanding Logarithm Properties and Rules

Mastering the fundamental properties of logarithms is essential for simplifying complex mathematical expressions, solving equations efficiently, and understanding the behavior of logarithmic functions across all branches of mathematics and science. The product rule states that log_b(x × y) = log_b(x) + log_b(y), which means that the logarithm of a product equals the sum of the logarithms of the individual factors, effectively converting multiplication into addition. This property was the original motivation for the invention of logarithms by John Napier in 1614, as it allowed scientists and navigators to perform complex multiplications by looking up logarithm values in tables and simply adding them together. The quotient rule states that log_b(x / y) = log_b(x) - log_b(y), converting division into subtraction. The power rule states that log_b(x^n) = n × log_b(x), which pulls exponents out as multiplicative coefficients and is particularly powerful for solving exponential equations where the unknown appears in the exponent. The change of base formula log_b(x) = log_c(x) / log_c(b) enables conversion between any two logarithmic bases. Special values include log_b(1) = 0 for any valid base (since b^0 = 1 always), log_b(b) = 1 (since b^1 = b), and the fact that log_b(0) is undefined. The inverse relationship between logarithms and exponentiation means that b^(log_b(x)) = x and log_b(b^x) = x. For computing the exponential expressions that are the inverse of logarithms, our Exponent Calculator provides detailed step-by-step solutions for any base and exponent combination.

Real-World Applications of Logarithms in Science, Engineering, and Computing

Logarithms appear with remarkable frequency throughout science, engineering, finance, and everyday measurements, often in situations where quantities span many orders of magnitude and a linear scale would be impractical. The pH scale in chemistry measures acidity using the negative base-10 logarithm of the hydrogen ion concentration: pH = -log₁₀[H⁺], meaning each unit decrease in pH represents a tenfold increase in acidity. Sound intensity is measured in decibels using dB = 10 × log₁₀(I/I₀), where each 10 dB increase represents a tenfold increase in sound power. The Richter scale for earthquake magnitude is logarithmic, meaning a magnitude 7 earthquake releases approximately 31.6 times more energy than a magnitude 6. In information theory, log₂ measures information content in bits. Computer scientists use logarithms extensively in algorithm analysis: binary search achieves O(log₂ n) time complexity. In finance, logarithmic returns are preferred because they are additive over time periods. For computing nth roots that frequently appear alongside logarithmic calculations, our Root Calculator provides specialized tools for square roots, cube roots, and arbitrary nth roots with step-by-step simplification.

Solving Logarithmic and Exponential Equations Step by Step

Logarithms serve as the essential mathematical tool for solving exponential equations where the unknown variable appears in the exponent. The fundamental technique is to take the logarithm of both sides: to solve 2^x = 32, apply log to both sides to get x × log(2) = log(32), then isolate x as x = log(32)/log(2) = 5. For equations in logarithmic form like log₂(x) = 5, convert to exponential form to get x = 2^5 = 32. When solving logarithmic equations, always verify solutions by substituting back, because domain restrictions can produce extraneous solutions. Natural logarithms are indispensable for continuous growth and decay problems modeled by A = Pe^(rt): taking the natural log gives t = ln(A/P)/r for finding time, or r = ln(A/P)/t for determining the growth rate. The half-life formula t½ = ln(2)/λ uses the natural logarithm of 2 to convert between the decay constant and the half-life period. For advanced arithmetic and trigonometric calculations that accompany logarithmic problem-solving, our Scientific Calculator provides a full-featured computing environment with memory functions and calculation history.

The Three Common Logarithmic Bases: Common, Natural, and Binary

While logarithms can use any positive base other than 1, three specific bases dominate practical applications. The common logarithm (log₁₀) uses base 10 and is the most intuitive for everyday use because our number system is decimal: log₁₀(1000) = 3 tells us that 1000 has three zeros. The natural logarithm (ln or log_e) uses Euler's number e ≈ 2.71828 and holds a uniquely privileged position in mathematics because it is the only logarithmic function whose derivative equals the simple reciprocal 1/x, making it the natural choice for calculus and differential equations. The binary logarithm (log₂) uses base 2 and is fundamental to computer science and information theory because digital computers operate on binary digits: log₂(n) tells you how many bits are needed to represent n distinct values. The change of base formula connects all three: log₁₀(x) = ln(x)/ln(10) ≈ ln(x)/2.3026, and log₂(x) = ln(x)/ln(2) ≈ ln(x)/0.6931, so any logarithm can be computed from any other by multiplying by a constant conversion factor.

Log Calculator FAQ

A logarithm value x must be positive, and the base must be positive but not 1. If either rule is broken, the calculator shows an invalid state because the real logarithm is undefined. The base field accepts common numeric bases and e for natural logarithms.

Use Find Log to solve for the exponent y, Find Value to reverse a logarithm and calculate x, and Find Base when the value and exponent are known. The copy button exports the result, interpretation, formula steps, and verification line for notes or reports.