Calcumia

Free Logarithm Calculator

This free logarithm calculator quickly evaluates the log of any positive number for any custom base, alongside natural log (ln), common log (log₁₀), and binary log (log₂). Whether you are a student solving algebra problems or an engineer working with signal scales, this tool delivers instant, precise calculations for your math workflows.

Your inputs

Result

logᵦ(x)
—
ln(x)
—
log₁₀(x)
—
log₂(x)
—

Add this calculator to your site — free

Copy one of the snippets into your page. Please keep the attribution link visible.

How to use the Logarithm Calculator

  1. Enter your positive value into the Number input field.
  2. Specify your desired base in the Base input field.
  3. Review the primary logᵦ(x) calculation result.
  4. Check the companion outputs for natural log ln(x), common log log₁₀(x), and binary log log₂(x).

How it works

A logarithm represents the exponent to which a given base must be raised to produce a specific value. In mathematical terms, the expression logᵦ(x) = y directly corresponds to bʸ = x. For instance, log₁₀(100) equals 2 because 10 squared yields 100. Beyond your chosen base, the calculator provides standard values like the natural logarithm (ln), common logarithm (log₁₀), and binary logarithm (log₂), which are fundamental across various branches of science.

The tool computes arbitrary base logarithms using the standard change-of-base formula defined in mathematical conventions such as ISO 80000-2. This identity states that logᵦ(x) equals ln(x) divided by ln(b), where ln denotes the natural logarithm with Euler's number (e ≈ 2.71828) as its base. Evaluating logarithms through natural logarithms ensures consistent numerical precision and conforms to computational standards across modern mathematical software and scientific computing libraries.

Logarithmic operations are strictly defined over real numbers only when the input number (x) and the base (b) are positive, with the base not equal to 1. Raising a positive base to any real exponent never yields zero or a negative number, meaning logs of negative values cannot produce real solutions. Additionally, choosing a base of 1 is mathematically undefined because 1 raised to any power remains 1, producing a zero denominator.

Formula

logᵦ(x) = ln(x) ÷ ln(b)

Worked example

log₁₀(100) = 2 because 10² = 100.

Frequently asked questions

Why must the input number be positive?+

In real-number mathematics, a positive base raised to any real power always yields a positive result. It can never produce zero or a negative number. Therefore, logarithms of zero or negative numbers are undefined in the set of real numbers.

What is Euler's number (e) in the natural logarithm?+

Euler's number, denoted as e, is an irrational mathematical constant approximately equal to 2.71828. It serves as the base for the natural logarithm, denoted as ln(x), which occurs naturally in calculus, continuous compound interest, and exponential growth or decay models.

Why can the base not equal 1?+

The number 1 raised to any real power is always 1. If the base were 1, the equation 1ʸ = x would only hold for x = 1, where y could be any number. In the change-of-base formula, ln(1) equals zero, causing division by zero.

What is the difference between log and ln?+

In general science and engineering contexts, log without a specified base typically denotes the common logarithm with base 10 (log₁₀). In contrast, ln specifically refers to the natural logarithm with base e. In computer science, log frequently implies base 2 instead.

How does the change-of-base rule work?+

The change-of-base rule allows you to calculate any logarithm using natural logarithms or common logarithms. It states that logᵦ(x) = ln(x) ÷ ln(b). This mathematical identity makes it simple to compute non-standard bases on any standard scientific calculator.

✓ Written and reviewed by the Calcumia editorial team · Last updated: · How we build and check our calculators

Results are estimates for information only and are not financial, medical or legal advice.