Comparing logarithms through a ratio
The difference of two logarithms in the same base equals the logarithm of their ratio. For 1000 and 10 in base 10 both sides come to 2.
The quotient rule
For positive numbers x and y and a valid base b, log_b(x) - log_b(y) = log_b(x ÷ y). With x = 1000, y = 10 and base 10, the logarithms are 3 and 1, and their difference is 2. The ratio 1000 ÷ 10 is 100, and log base 10 of 100 is 2. The two sides agree. The rule follows from the laws of exponents: dividing powers of the same base subtracts their exponents, 10³ ÷ 10¹ = 10², so the logarithm of the quotient is the difference of the exponents. The logarithm calculator reports 3, 1 and 2 for the three values in the worked cases.
Ratio first, then logarithm
The difference of the logarithms matches the logarithm of the ratio, which is a quotient. It does not match the logarithm of the ordinary difference. The ordinary difference of 1000 and 10 is 990, and log base 10 of 990 is about 2.9956, far from 2. A common slip is to subtract the original values and then take a logarithm. The correct order for the ratio check is to divide 1000 by 10 first, which the basic calculator does in the third worked case, then take the logarithm of 100. Writing the two routes on parallel lines makes it clear they are different operations.
A different base and numbers
Try base 2 with 64 and 4. The logarithms are 6 and 2, and the difference is 4. The ratio is 64 ÷ 4 = 16, and log base 2 of 16 is 4. They match. The ordinary difference is 60, and log base 2 of 60 is about 5.907, which is not 4. The same check in base 10 with 5000 and 50 gives logarithms near 3.699 and 1.699, a difference of 2.000, and a ratio of 100 with logarithm 2. The identity holds in every valid base, so you can choose whichever base makes the numbers easy.
Why the base must match
The identity requires both logarithms in the same base. Subtracting log base 10 of 1000 (3) and log base 2 of 10 (about 3.3219) gives a number that has no relation to any ratio. When the base changes, the numeric value of the difference changes by a constant factor, although the ratio stays the same. For example, log base 2 of 100 is about 6.6439, while log base 10 of 100 is 2. The change-of-base formula divides by ln(b), so the same ratio produces a different logarithm in a different base. Always record the base alongside the logarithm.
Positive values only
Logarithms of real numbers exist only for positive arguments. The rule needs both x and y positive. A ratio of two negative numbers is positive, but the individual logarithms still do not exist in the real numbers, so the rule cannot be applied to them separately. If y is 0, the ratio is undefined. The examples use positive whole numbers, and the base 10 choice gives integer logarithms for powers of ten. If either value is zero or negative, the tool reports an error, which is the expected behavior.
Where ratios become differences
Scales that compare ratios often use logarithms because subtraction is easier than division. Decibels measure a power ratio as 10 × log base 10 of the ratio, so a power ratio of 100 is 20 dB. Earthquake magnitude scales and pH are logarithmic too: pH 3 and pH 5 differ by a factor of 100 in hydrogen ion concentration, which is the 2 from the difference of the two scale values. Before calculators, slide rules and logarithm tables turned multiplication and division into addition and subtraction for the same reason.
Sums and powers follow the same pattern
The quotient rule has two companions. The product rule says log_b(x) + log_b(y) = log_b(x × y): in base 10, log(1000) + log(10) = 3 + 1 = 4 = log(10000). The power rule says log_b(x^k) = k × log_b(x): log base 10 of 1000² = 1,000,000 is 6, which is 2 × 3. Together with the quotient rule, they turn multiplication into addition, division into subtraction and powers into multiplication. That is the reason logarithmic scales compress very large ranges, and the reason a ratio of two measurements is easier to compare on a log scale. Each rule needs positive arguments and one common base, and the base does not change the form of the rule, only the numbers.
Floating-point notes
The logarithm tool computes ln(x) ÷ ln(b) in floating point. For log base 10 of 1000 the result may be 2.9999999999999996 or exactly 3, depending on how the division rounds. A result a hair below an integer is a rounding artifact and should be read as the integer. When checking an identity by computer, compare the two sides within a small tolerance instead of testing for exact equality. Hand calculations with integer logarithms avoid the issue, which is one reason the worked cases use powers of ten. If you need to record a result for later comparison, write the value, the base and the number of digits kept, such as 2.9956 for log₁₀ 990 to four decimals. Without the base and precision, two logs of different origin can look like a disagreement when they are the same quantity.
What the check shows and does not show
The control verifies the quotient rule for one pair of numbers. It does not prove the rule for all inputs, and it says nothing about sums, which follow a different rule: log_b(x) + log_b(y) = log_b(x × y). It also does not cover powers, where log_b(x^k) = k × log_b(x). Each rule needs its own check. Choosing values where each logarithm is a whole number makes the arithmetic visible, and choosing a second pair with non-integer logarithms, such as 60 and 4 in base 2, confirms the rule also holds when decimals are involved. Base 2 with 60 and 4 gives log₂ 60 of about 5.907 and log₂ 4 of 2, a difference near 3.907, and the ratio 15 has a base-2 logarithm of about 3.907. The two routes agree to the digits shown, even though no intermediate value is a whole number. Checking one pair of each kind, whole-number logarithms and decimal logarithms, is a small test that still covers the cases a worksheet is likely to meet. A spreadsheet that applies the rule across a column of readings can use the same check on its first row.
Reproduce the checks
Larger-value logarithm
Open the Logarithm calculator and enter:
- Positive value
1000- Logarithm base
10
Expected output:
Logarithm
3Floating-point evaluation may be close to the integer.
Smaller-value logarithm
Open the Logarithm calculator and enter:
- Positive value
10- Logarithm base
10
Expected output:
Logarithm
1The base logarithm is one.
Original ratio
Open the Basic calculator and enter:
- First number
1000- Operation
divide- Second number
10
Expected output:
Result
100Divide the original values before taking this control logarithm.
Ratio logarithm
Open the Logarithm calculator and enter:
- Positive value
100- Logarithm base
10
Expected output:
Logarithm
2This equals the difference of the two logarithms.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.