Understanding logarithms
A logarithm is the answer to a simple question: to what power must this base be raised to get this number? The number 1,000 is 10 raised to the power 3, so the logarithm of 1,000 to base 10 is 3. That single idea is the whole subject.
Formula and method
log_b(x) = ln(x) ÷ ln(b)
log_b(x) — the exponent y such that b raised to y equals x
Logarithm (definition): Change of base (the working formula): x — the positive value, the number whose logarithm is wanted; it must be greater than zero. b — the logarithm base, positive and different from 1; 10 gives the common log, e gives the natural log, 2 gives the binary log. ln — the natural logarithm, log base e, where e is about 2.71828. Why the division works. The definition says b raised to log_b(x) equals x. Taking the natural log of both sides gives log_b(x) × ln(b) = ln(x), because the log of a power brings the exponent down in front. Dividing both sides by ln(b) leaves log_b(x) = ln(x) ÷ ln(b). That is the whole method: two natural logs and one division. For the live-page example, ln(1,000) is 6.907755 and ln(10) is 2.302585, and 6.907755 ÷ 2.302585 = 3, which matches 10³ = 1,000. Three results worth remembering. The log of 1 is always 0, whatever the base, because any base raised to the power 0 is 1. The log of the base itself is always 1, because the base raised to the power 1 is the base. And a value between 0 and 1 has a negative logarithm, because a positive base must be raised to a negative power to shrink below 1: log_10(0.1) = −1, since 10^(−1) = 0.1. These three facts are the quickest way to sense-check any answer the tool gives you.
Worked example
Example 1 — 1,000 to base 10 (the live-page example) A positive value of 1,000 and a logarithm base of 10. ln(1,000) = 6.907755 ln(10) = 2.302585 log_10(1,000) = 6.907755 ÷ 2.302585 = 3 Result: 3 This is the stored example on the live page, and the arithmetic above reproduces it. The check is immediate: 10³ = 10 × 10 × 10 = 1,000, so the exponent must be 3. A whole-number answer like this one means the value is an exact power of the base — 1,000 is exactly 10 cubed.