How do logarithmic scales work?
Updated · 4 min read
Some measurements span ranges so large that ordinary counting becomes awkward. The log calculator helps translate those multipliers into manageable steps. Instead of asking how much was added, a logarithmic comparison asks how many times one quantity exceeds another.
Use the logarithm calculator to check the numerical examples below with base 10. Decibels, earthquake magnitudes, and pH are related by this mathematical idea, but they do not share one interchangeable formula. Their coefficients, reference quantities, and scientific meanings matter.
Try the Log Calculator
Enter your own numbers. Nothing you type leaves your device.
Think of a logarithm as an exponent
The statement log base 10 of 1000 equals 3 means exactly that 10 raised to the third power equals 1000. A logarithm answers the exponent question. Because multiplying by 10 adds one to a base-10 logarithm, equal steps on the log scale represent equal ratios rather than equal differences.
The site computes logs in any valid base using ln(x) / ln(base). For real-valued calculations here, x must be positive, and the base must be positive and not equal to one. Zero and negative inputs do not have ordinary real logarithms.
| Input x | log10(x) | Meaning |
|---|---|---|
| 1 | 0 | 10^0 = 1 |
| 10 | 1 | 10^1 = 10 |
| 100 | 2 | 10^2 = 100 |
| 1000 | 3 | 10^3 = 1000 |
Decibels compare sound quantities with a reference
For an intensity ratio, the level difference is 10 times log10(I2 / I1). If the second intensity is 100 times the first, log10(100) = 2, so the difference is 20 dB. A tenfold intensity ratio gives 10 dB, and a thousandfold ratio gives 30 dB.
NIDCD explains that a 10 dB rise means ten times the intensity and can seem about twice as loud. Perceived loudness is not the same quantity as physical intensity. Also distinguish intensity ratios from pressure ratios: under matching acoustic conditions, sound-pressure level differences use 20 times the log of the pressure ratio, not 10.
Earthquake magnitude is not shaking at your house
USGS describes the logarithmic basis of earthquake magnitude and distinguishes magnitude from local shaking intensity. In the traditional amplitude comparison, one magnitude unit corresponds to a tenfold recorded amplitude change under the scale's prescribed conditions. A magnitude difference of two corresponds to an amplitude factor of 100 in that comparison.
Energy comparisons use a different approximate relationship: energy ratio = 10^(1.5 times magnitude difference). For a one-unit difference, 10^1.5 is about 31.62, often rounded to 32. For two units, 10^3 is 1000. These are approximate energy scaling examples, not predictions of damage.
Richter local magnitude and modern moment magnitude are not simply different names for the same measurement procedure. USGS notes that moment magnitude is more reliable for very large earthquakes. Distance, ground conditions, and building characteristics also influence what people experience, so a magnitude number alone cannot describe local consequences.
pH uses a negative logarithm
For an introductory dilute-solution approximation, pH = -log10 of hydrogen-ion concentration expressed relative to the standard reference. More precisely, the definition uses hydrogen-ion activity. An example value of 10^-5 gives log10(10^-5) = -5, so the negative sign makes the pH 5.
A value of 10^-7 gives pH 7 in the same simplified model. Comparing the two activities gives 10^-5 / 10^-7 = 100. The pH 5 sample therefore has 100 times the hydrogen-ion activity of the pH 7 sample. Lower pH corresponds to greater hydrogen-ion activity, not less.
| Context | Log calculation | Scale change |
|---|---|---|
| Intensity ratio | 10 log10(100) | 20 dB |
| Traditional amplitude ratio | log10(100) | 2 magnitude units |
| Hydrogen-ion activity rises | -log10(100) | pH decreases by 2 |
Read the formula before interpreting a result
Start by identifying the quantity, reference, logarithm base, and multiplier. Enter the positive ratio in the calculator, then apply the coefficient and sign required by the physical formula. A bare result of 2 might describe a logarithm, but it does not automatically mean 2 dB or two pH units.
You can reverse a log with an exponent: if log10(x) = 2, then x = 10^2 = 100. This is a useful check when a headline sounds surprising. Keep unlike quantities separate, and avoid translating an energy ratio, pressure ratio, or activity ratio into another scale without its actual definition.
Frequently asked questions
They are inverse ideas. A logarithm finds an exponent, while exponentiation reconstructs the original value. Log-scale spacing represents multiplicative changes in the underlying quantity.