全球免费使用

对数计算器:以 10 为底、ln、log₂ 及任意底数

计算正数以 10、e、2 或任意自选底数为底的对数,并列显示三种常用对数,并通过计算底数的结果次幂进行验算。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

A logarithm answers “what power do I raise the base to, to get this number?”. This calculator gives that answer in base 10, base e, base 2 or any base you choose, and lists the three common logarithms side by side. It is useful for algebra and chemistry homework, decibels and pH, the number of bits needed for a value, and working out how long something takes to double at a steady growth rate.

使用方法

  1. Enter the number x. It must be greater than 0.
  2. Pick base 10, base e (the natural log, ln), base 2, or “another base”.
  3. For another base, type it in the last field, for example 1.07 for 7% growth. The base must be positive and not 1.
  4. Run it to see the logarithm, ln, log₁₀ and log₂ of x, and a check that raises the base to the result.

计算原理

Any logarithm can be written with natural logs: log_b(x) = ln(x) ÷ ln(b). The tool computes it that way using the browser’s double-precision maths, shows up to ten decimal places and then raises the base to the result so you can see that it returns x. Very small rounding differences in the last digit are normal for floating-point arithmetic.

log_b(x) = ln(x) ÷ ln(b), for x > 0, b > 0, b ≠ 1

计算示例

An investment grows 7% a year and you want to know how long it takes to double. The answer is log base 1.07 of 2, which is 10.2447683511 years, a little over ten years. The check line confirms that 1.07 raised to that power gives back 2. For comparison, ln 2 is 0.6931471806 and log₁₀ 2 is 0.3010299957.

示例输入和结果

log₁₀(1000) = 3;log₂(1024) = 10;ln(e²) = 2

局限性

  • Real logarithms only. Logs of zero, negative numbers and complex results are not supported.
  • Precision is limited to about 15 significant digits, the same as a spreadsheet.
  • Inputs larger than 10³⁰⁰ are rejected to stay within floating-point range.

最后更新:

常见问题

log 和 ln 有什么区别?

在大多数计算器上,log 表示以 10 为底,ln 表示以 e(约 2.71828)为底。在一些数学和编程资料中,单独的 log 表示自然对数。

为什么不能对 0 或负数取对数?

任何正底数的实数次幂都不会得到 0 或负数,因此在实数范围内这些值的对数没有定义。

常见问题

Is log on my calculator base 10 or base e?

On most calculators the log key is base 10 and ln is base e. In many programming languages, log() means the natural logarithm, so check the documentation before comparing results.

How do I undo a logarithm?

Raise the base to the answer: if log₁₀(x) = 3, then x = 10³ = 1000. The scientific calculator can evaluate powers like 10^3 directly.

What is the rule of 72?

It is a shortcut for doubling time: 72 ÷ 7 ≈ 10.3 years at 7%. The exact answer from logarithms here is 10.24 years, so the shortcut is close for typical rates.

故障排除

It says the number must be greater than 0.

Logarithms of 0 and negative numbers are not defined for real numbers. Check for a stray minus sign.

It says the base is not allowed.

The base must be greater than 0 and not equal to 1, because 1 raised to any power is always 1.

My answer is 2.9999999999 instead of 3.

That is floating-point rounding. The displayed result is rounded to ten decimals, which normally hides it.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步