Logarithm Calculator
Evaluate natural logarithms (ln), common base-10 logs, binary base-2 logs, or custom bases, solve for unknown arguments or bases, apply change-of-base identities, and plot curves interactively.
Logarithm Inputs
b > 0, b != 1Logarithm & Reference Curve Plot
Plots y = log_b(x) alongside natural log ln(x) and highlights your evaluated coordinate
Step-by-Step Algebraic Derivation
How to Calculate Logarithms
A logarithm computes the exponent y needed to raise a positive base b (b != 1) to reach argument x: log_b(x) = y if and only if b^y = x. Using the Change-of-Base Theorem, any base evaluates as log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b).
Fundamental Definition and Exponential Equivalence
In algebra, calculus, and information science, a logarithm answers an inverse question about repeated multiplication: given a fixed positive growth factor and an observed outcome , what exponent maps onto ? Formally, logarithmic notation and exponential notation express the exact same numerical truth in opposite directions:
Base Restriction (b > 0, b != 1)
Allowing collapses every power into a constant function that cannot invert other numbers. Negative bases jump inconsistently between real and complex outputs at fractional exponents, while zero bases collapse at . Real-valued calculators therefore restrict strictly to positive values excluding .
Positive Argument Domain (x > 0)
Raising any positive base to any real exponent always produces a strictly positive value. If you ever need to evaluate logarithms of negative numbers or points on the complex plane, use our specialized complex logarithm calculator.
Natural (ln), Common (log₁₀), and Binary (log₂) Systems
While logarithms exist for infinitely many bases, three canonical bases anchor modern science, engineering, and computing:
Base e ≈ 2.71828183
Chosen in calculus because carries no extra constant factor. Essential for continuous compounding, radioactive decay, entropy, and statistical data transformation.
Base 10
Matches decimal powers of ten directly, indexing scientific notation, pH acidity, acoustic decibels, and astronomical magnitudes. Explore dedicated tools for base-10 logarithms and base-10 antilogs.
Base 2
Measures doubling steps, Shannon information bits, balanced binary tree height, and divide-and-conquer sorting bounds such as .
Algebraic Logarithm Laws and Simplification
Because logarithms reverse exponent arithmetic, every law of exponents translates into a dual logarithmic simplification identity for all :
Product Rule
Multiplication inside an argument decomposes into addition outside, available directly in our product rule calculator.
Quotient Rule
Division inside a logarithm splits into subtraction of individual logs, explored in the quotient rule calculator.
Power Rule
Pulls inner exponents or fractional roots out in front as linear coefficients—see our interactive logarithm power rule tool.
Identity & Reciprocal Base Rules
Every valid curve passes through and , while inverting a base simply reflects the graph vertically across the x-axis.
Change of Base Theorem and Proof
Most handheld scientific calculators provide built-in keys solely for (base ) and (base ). The Change-of-Base Theorem lets us compute a logarithm in any arbitrary base by forming the quotient of two logarithms in any convenient reference base :
Proof: Let , which translates exponentially to . Taking of both sides produces . Applying the power rule pulls down , yielding ; dividing by establishes the formula. Explore dedicated base conversions in our change-of-base logarithm tool.
Solving Exponential and Logarithmic Equations
Whenever an unknown variable sits inside an exponent—for instance —divide first to isolate the exponential power (), then apply logarithms on both sides: , giving . Conversely, when solving multi-term logarithmic equations, condense separate logs into one combined argument via Product/Quotient rules and rewrite exponentially via using our logarithmic equation solver and exponential equation solver.
Scientific Scales, Signal Gain, and Algorithm Complexity
Seismology (Richter Magnitude)
Earthquake magnitude compresses enormous ground wave amplitude differences into a 1–10 scale where each step increases wave height tenfold.
Acoustics & Signal Decibels
Sound pressure level mirrors the non-linear Weber–Fechner response of human hearing across trillion-fold intensity spans.
Computer Science Complexity
Binary search, B-trees, and divide-and-conquer sorting run in or time because each halving step shrinks remaining work exponentially.
Step-by-Step Worked Numerical Solutions
Example 1: Exact and Non-Integer Base-3 Logarithms
Evaluate and . Recognizing yields immediately. For , divide natural logarithms: . Checking in reverse verifies .
Example 2: Rational Exponent Reduction log₉(27)
Notice both and share base . Converting to base 3 gives .
Common Pitfalls and Domain Restrictions
Splitting Additions Inside Logs
cannot be factored into ; the product rule applies exclusively to multiplication inside the argument.
Non-Positive Argument Traps
Real-valued logarithms require strictly positive inputs . Always reject algebraic equation solutions that make any logarithmic argument zero or negative.
Confusing Quotient of Logs
equals the change-of-base log , whereas .
Computational Accuracy and Graphing Methodology
All logarithmic computations run locally in your browser using IEEE-754 double precision () paired with rational fraction detection up to denominator 1,000, inverse exponential verification, scientific characteristic/mantissa extraction, and responsive high-DPI canvas plotting comparing directly against the natural logarithm baseline.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.