how to use logarithm in calculator

Logarithm Calculator

Use this tool to calculate logb(x), log(x) (base 10), or ln(x) (base e).

What does logarithm mean on a calculator?

A logarithm answers this question: "What power do I raise a base to get a number?"

For example, if you want log10(1000), you are asking: 10 to what power equals 1000? The answer is 3, because 103 = 1000.

On most scientific calculators, you will see two common keys:

  • log = base-10 logarithm
  • ln = natural logarithm (base e, where e ≈ 2.71828)

How to use logarithm keys step-by-step

1) Using the LOG key (base 10)

  1. Type a positive number (for example, 500).
  2. Press the log key.
  3. The screen shows log10(500), which is approximately 2.69897.

This is useful in pH, decibels, and scale-based calculations.

2) Using the LN key (base e)

  1. Type a positive number (for example, 20).
  2. Press the ln key.
  3. You get ln(20) ≈ 2.99573.

Natural logs are common in growth/decay, calculus, statistics, and finance formulas.

3) Using any other base (like base 2 or base 5)

Many basic scientific calculators do not have a dedicated log base b key. Use the change-of-base formula:

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

Example: Find log2(64).

  • Compute ln(64) ≈ 4.158883
  • Compute ln(2) ≈ 0.693147
  • Divide: 4.158883 / 0.693147 ≈ 6

So, log2(64) = 6.

Important input rules

  • The number x must be greater than 0.
  • The base b must be greater than 0 and cannot be 1.
  • log(1) is always 0 for any valid base.

If you enter invalid values (like x = 0, x < 0, base = 1), calculators will show an error or math domain warning.

Quick examples you can try

Example A: log(10000)

Result: 4, because 104 = 10000.

Example B: ln(1)

Result: 0, because e0 = 1.

Example C: log3(81)

Result: 4, because 34 = 81.

Common mistakes and how to avoid them

  • Mixing log and ln: Use the right key for your formula.
  • Forgetting parentheses: In complex expressions, wrap log outputs clearly.
  • Invalid base: Base 1 is never allowed.
  • Negative inputs: Standard real-number logs need positive inputs.

When logarithms are useful in real life

  • Finance: Growth rates, continuous compounding, investment models.
  • Science: pH scale, earthquake magnitude, sound intensity (dB).
  • Data & computing: Algorithm complexity, entropy, binary scaling.
  • Engineering: Signal processing and control systems.

Final tip

If your calculator has only log and ln, you can still solve any logarithm problem by applying change of base. Use the calculator above to practice quickly and verify your manual steps.

🔗 Related Calculators