Logarithm Calculator
Calculate logarithms with any arbitrary positive base (log_b x) using the change of base formula with step-by-step mathematical steps.
Did this calculation save you time?
Student ProjectHi! I'm a student developer building Calculat in my spare time. I was tired of searching for basic math tools and having to click through 10 spammy popups, loan ads, and cookie trackers.
I keep this website 100% free, private, and ad-free. If this helped you with your homework, project, or finances today, bookmarking this page or telling a friend helps me keep building more free tools!
What Is a Logarithm Calculator?
A logarithm is the inverse operation to exponentiation. The logarithm of a number x with respect to base b is the exponent to which b must be raised to produce x: log_b(x) = y if and only if b^y = x.
How to Use This Calculator
- Enter the argument (x > 0) and the base (b > 0, b ≠ 1).
- View the calculated logarithmic value.
- Review the change-of-base formula steps and equivalent exponential identity.
Change of Base Formula
\log_b(x) = y \iff b^y = x, \quad \log_b(x) = \frac{\ln(x)}{\ln(b)} = \frac{\log_{10}(x)}{\log_{10}(b)}To compute a logarithm to any base on standard computing hardware, divide the natural logarithm of x by the natural logarithm of base b.
Worked Example
Scenario: Calculate log₂(32)
Given: argument x = 32, base b = 2
By change of base: log₂(32) = ln(32) / ln(2)
Notice that 2⁵ = 32
Result: log₂(32) = 5
Tips & Key Notes
- The argument x must be strictly positive (x > 0); real logarithms of negative numbers and zero are undefined.
- The base b must be strictly positive and cannot equal 1 (b > 0, b ≠ 1).
- Product rule: log_b(xy) = log_b(x) + log_b(y). Quotient rule: log_b(x/y) = log_b(x) - log_b(y).
Frequently Asked Questions
What is the change of base formula?
The change of base formula allows you to evaluate any base b logarithm using natural log or common log: log_b(x) = ln(x) / ln(b).
Why can’t the base of a logarithm equal 1?
Because 1 raised to any power is always 1 (1^y = 1). Therefore, you cannot solve 1^y = x for any number other than 1.
Why can’t you take the log of a negative number?
In the real number system, raising a positive base b to any real power always yields a positive number (b^y > 0). Negative arguments require complex logarithms.
What is log_b(1)?
For any valid base b, log_b(1) = 0 because b⁰ = 1.
Related Calculators
Explore similar toolsNatural Logarithm Calculator (ln)
Calculate the natural logarithm (ln x = log_e x) with base e ≈ 2.718281828 with step-by-step calculus and exponential properties.
Common Logarithm Calculator (log₁₀)
Calculate common base-10 logarithms (log₁₀ x) with characteristic, mantissa, and scientific notation connections.
Nth Power Calculator
Calculate any base raised to the power of n (x^n) for positive, negative, and fractional exponents with step-by-step exponent laws.