Log Calculator (Logarithm)

Natural log ln(x)

—

Enter a positive number and click Calculate.

Common log log₁₀(x)

—

Enter a positive number and click Calculate.

Custom base logb(x)

—

x must be positive; base b must be positive and not 1.

Logarithms answer a backwards question: instead of raising a base to a power, you already have the result and need the exponent. That flip confuses every new calculus cohort—and pH, decibel, and half-life formulas all hide logs inside. Three blocks below cover ln, log₁₀, and any custom base without forcing you to reformat the problem.

How to Use This Log Calculator

  • ln(x). Natural log, base e ≈ 2.71828. Enter a positive x. Common in growth models and calculus.
  • log₁₀(x). Common logarithm, base 10. Enter positive x. Shows up in pH, Richter-style scales, and orders of magnitude.
  • logb(x). Enter positive x and base b (positive, not 1). Example: log₂(8) → x = 8, b = 2 → 3.

Exponents undo logarithms—check powers with the Exponent Calculator. For base-2 only (binary logarithm), use the dedicated Log Base 2 Calculator. For nth roots without log language, use the Root Calculator.

Log Formulas and Practical Applications

If by = x, then logb(x) = y. Think of the log as the exponent sitting on the base—like reading the dial on a slide rule that already encodes multiplication as addition of logs.

logb(x) = ln(x) / ln(b)

Change-of-base lets you rewrite any log in terms of ln—the custom base block computes logb(x) directly so you skip the manual fraction when verifying homework.

Natural log in growth

Continuous compound models use ert. ln reverses that—if a population reaches 2.718× its start under unit growth, ln tells you the accumulated rate factor. ln(1) = 0 because e0 = 1.

Base-10 in science scales

pH is −log₁₀ of hydrogen ion activity. A difference of 1 pH unit is a tenfold concentration change—logs compress wide ranges onto readable numbers.

Custom bases in algebra

log₂(32) = 5 because 2^5 = 32. Binary bit counts, information theory, and discrete math love base 2—the custom base block handles it, or open the Log Base 2 Calculator for linked x ↔ log₂ fields. Chemistry may stick to 10 or e. Match the block to the base your problem states.

Inputs must be positive for real-number logs. log(1) = 0 for any valid base because b⁰ = 1. log of the base itself equals 1 because b¹ = b. Those two anchors help you sanity-check results before copying them into a worksheet.

Display uses up to 14 decimal places with trailing zeros trimmed—the same presentation rules as the rest of RapidRatio’s math hub.

Log rules you still need on paper: log of a product equals sum of logs; log of a quotient equals difference. This page evaluates single values—no log(log(x)) nesting—so paste the inner result manually if a problem chains operations. For powers inside logs, compute the power in the Exponent Calculator first, then log the result here.

Very large or very small positive x values may print in trimmed decimal form—compare magnitude against orders of ten mentally. ln(10) ≈ 2.302585 and log₁₀(10) = 1 are handy reference points when you are checking whether a result landed on the right decade.

Base 1 is rejected because 1 raised to any power stays 1—log base 1 would divide by ln(1) = 0. Base must also be positive; negative bases with fractional logs fall outside real-number log rules this page implements.

Frequently Asked Questions

Textbooks disagree on bare “log” notation—use the ln block when the problem says ln; use the log₁₀ block when chemistry or science context implies base 10. The custom base block covers everything else, including base 2 for bit-length estimates.

What is the difference between ln and log?

Here ln is base e and log₁₀ is base 10. Bare “log” in textbooks might mean either—check your syllabus. Each block is labeled by base type to avoid mix-ups.

Why is the logarithm of zero or a negative number undefined?

Real logs need positive x. Zero and negatives fall outside the standard real definition, so the calculator errors instead of returning NaN quietly.

How do I calculate a logarithm with a custom base?

Enter positive x and base b > 0, b ≠ 1 in the custom base block. The result is the exponent on b that reproduces x.

What is the change-of-base formula?

logb(x) = ln(x)/ln(b). Useful when your calculator only has ln and log₁₀ keys—you do not need to apply it manually here for the custom base block.

What is ln(1)?

Zero. Any valid log of 1 is zero because b0 = 1. Quick sanity check when simplifying log expressions.

Disclaimer. RapidRatio is informational only—not lab instrumentation or exam authority. Confirm log conventions with your course materials.