Log Calculator

3-in-1 Log Tools

Tool A: Natural log ln(x)

Enter a positive number and click Calculate.

Tool B: Common log log₁₀(x)

Enter a positive number and click Calculate.

Tool C: 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

  • Tool A — ln(x). Natural log, base e ≈ 2.71828. Enter a positive x. Common in growth models and calculus.
  • Tool B — log₁₀(x). Common logarithm, base 10. Enter positive x. Shows up in pH, Richter-style scales, and orders of magnitude.
  • Tool C — logb(x). Enter positive x and base b (positive, not 1). Example: log₂(8) → x = 8, b = 2 → 3.
  • Copy results. Each block has a copy button for dropping the value into homework or a lab sheet.

Exponents undo logarithms—check powers with the Exponent 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—Tool C 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; chemistry may stick to 10 or e. Match Tool A, B, or C 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. Copy buttons on each mini-tool save a trip back to the keyboard when you are building a table of ln and log₁₀ values side by side.

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—always match Tool A or B to what your problem statement prints. When an exam says ln, use Tool A; when it says log without a base in a chemistry context, Tool B is usually the intended base 10. Tool C covers everything else, including base 2 for bit-length estimates.

What is the difference between ln and log?

Here ln is base e (Tool A) and log₁₀ is base 10 (Tool B). Bare “log” in textbooks might mean either—check your syllabus. This page labels each tool explicitly 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?

Tool C: positive x, base b > 0, b ≠ 1. 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 Tool C.

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.