A logarithmic scale is an axis on which each equal tick multiplies a fixed base instead of adding a fixed amount, so the position of any positive number on the scale is determined by its logarithm. To calculate a point on a logarithmic scale, take log_b(x) of your value, where b is the scale's base: log10(50) ≈ 1.699 places 50 between the 10¹ and 10² gridlines on a base-10 log axis, and log2(50) ≈ 5.644 places 50 between the 2⁵ = 32 and 2⁶ = 64 gridlines on a base-2 log axis. If you need to plot data, compare orders of magnitude, or convert between different log scales, computing the logarithm of each value with a calculator is the practical way to get exact positions. A free Logarithm Calculator returns log_b(x), ln(x), log10(x), and log2(x) the moment you type, so you can fill in a log-scaled chart, convert decibels, or solve pH without doing long division by hand.

how to calculate logarithmic scale
How to Calculate Values on a Logarithmic Scale

What a Logarithmic Scale Actually Is

On a linear ruler, the gap between 1 and 2 is the same as the gap between 99 and 100: one unit of distance equals one unit of value. On a logarithmic scale, that rule is replaced by multiplication. Each equal step on the axis multiplies the value by the same factor, and that factor is the base of the scale. A base-10 log scale multiplies by 10 every step, so the gridlines sit at 1, 10, 100, 1000, 10000 and so on. A base-2 log scale multiplies by 2, so the gridlines sit at 1, 2, 4, 8, 16, 32. The distance from 1 to 10 on a log-10 scale is identical to the distance from 10 to 100 and from 100 to 1000, because each step represents the same factor of ten.

The reason log scales exist is that real data often spans many orders of magnitude in one chart. Earthquake energies stretch from barely-felt tremors to events a million times more energetic, sound pressure runs from a quiet room to a jet engine, and the frequency response of an audio system covers 20 Hz to 20,000 Hz. A linear axis would crush the small values into one corner; a log axis spreads them out so the structure becomes visible. To read any number off a log scale, or to place a new value on one, you convert the number to its logarithm in the right base.

Where Logarithmic Scales Show Up in Real Work

You probably already use log scales without thinking about them. The pH scale in chemistry is a base-10 log scale of hydrogen ion concentration, so pH 3 means 10⁻³ moles per liter and pH 7 means 10⁻⁷. Decibels for sound intensity are base-10 logs of a power ratio: by definition, a 10 dB increase represents a tenfold jump in sound energy and a 20 dB increase represents a hundredfold jump. The Richter scale for earthquakes is a base-10 log of ground motion amplitude, so each whole step on the scale is a factor of ten. In computing and information theory, base-2 logarithms power bit counts, the depth of balanced binary trees, and the O(log n) running time of efficient search algorithms. In biology and finance, base-e logarithms describe continuous compound growth and exponential decay.

Choosing the wrong base for a log scale still produces a valid chart, but the gridlines land in awkward places. A base-10 scale on computer memory sizes gives gridlines at 1, 10, 100, 1000 bytes — useful for kilobytes and megabytes only if your data crosses those exact orders. A base-2 scale gives 1, 2, 4, 8, 16, 32, 64 — perfect for binary memory units and tree depths. Picking the base that matches the underlying units is what turns a log scale from a curiosity into a useful chart.

Common Logarithmic Scale Bases Compared

BaseCommon nameTypical useSample value
10Common log, log10pH, decibels, Richter scale, scientific axeslog10(1000) = 3
e ≈ 2.71828Natural log, lnContinuous compound growth, half-life decay, calculusln(e) = 1
2Binary log, log2Computing, information entropy, balanced binary treeslog2(8) = 3
Any b > 0, b ≠ 1log_bCustom scales and converted unitslog5(125) = 3

Most built-in calculator buttons give you only log10 and ln. To place a value on a base-2 chart or to convert decibels to nepers, you need a tool that handles any base. The Logarithm Calculator takes a custom base, so log2, log5, log7 and anything in between all return instantly alongside ln, log10, and log2.

How to Calculate Values for a Logarithmic Scale

The arithmetic itself is one division once you have the right base in mind, and the fastest way to do it without rounding mistakes is to type the values into a log tool. The steps below use the free Logarithm Calculator at /calculator/logarithm-calculator/.

  1. Identify the base of your scale. For a pH chart, decibels, or a generic scientific plot, use base 10. For memory sizes, tree depths, or anything measured in bits, use base 2. For continuous growth or decay problems, use base e.
  2. Type the number you want to place on the scale into the Argument (x) field. The argument must be greater than 0 — the calculator enforces this and returns an undefined message for zero or negative inputs because no power of a positive base can produce those results.
  3. Enter your base in the Base field, or leave it blank to default to e. Leaving it blank gives you ln(x), the natural log, so the same tool doubles as a natural log calculator without changing any settings.
  4. Read log_b(x) instantly in the result panel as you type. The calculator also shows ln(x), log10(x), and log2(x) for the same argument at the same time, plus a 2^exponent-style explanation when the result is a whole number — for example, log2(8) = 3 because 2³ = 8.
  5. Use that single log_b(x) value as the position of your number on the scale. If the gridlines sit at the integer powers of the base, the integer part of the logarithm tells you which decade (or doubling, or e-fold) the value lives in, and the fractional part tells you where between two gridlines it sits.

Everything runs locally in the browser, so there is no server round-trip, no upload of your data, and the tool still works offline once the page has loaded.

The Change of Base Formula and Why It Works

Any logarithm in any base can be rewritten using the natural log. The identity is log_b(x) = ln(x) ÷ ln(b), and it works because the natural log is just another logarithm, and the ratio of two logarithms in the same base cancels out the original base. This is exactly why a calculator that only knows ln can still evaluate log2, log5, log7, or the log of any other base without a built-in button for each one. The free Logarithm Calculator uses this identity under the hood for unusual bases, while for the everyday bases 2, 10 and e it calls the browser's native high-precision functions, so log2(8) returns exactly 3 rather than something like 2.9999999999999996.

A worked example: suppose you want log3(81) and you want to see the change of base in action.

Formula: log_3(81) = ln(81) ÷ ln(3) Substitute: 4.3944491547 ÷ 1.0986122887 Result: 4

The exact check is 3⁴ = 81, so the logarithm is the whole number 4. The change of base formula produces the same integer, not an approximation, because 81 is a clean power of 3. For genuinely irrational results — log10(7) ≈ 0.8450980400, for instance — the calculator keeps the full decimal detail so nothing is rounded into a fake whole number, and only trims tiny floating-point noise such as 3.0000000000000004 back down to 3.

If you want a deeper walkthrough of the change of base identity, the how to calculate logarithms in any base instantly guide covers more examples using the same tool.

Choosing the Right Base for Your Scale

The base of a log scale is not arbitrary — it is set by the units the data already lives in. Sound intensity ratios are conventionally expressed in decibels, which is base 10, so a sound chart is naturally base 10. Information is measured in bits, which is base 2, so a memory or tree-depth chart is base 2. Drug concentration half-lives and radioactive decay constants use base e because the underlying physics is continuous exponential decay. If your data does not come with a built-in base, base 10 is the safest default because human readers recognize the 1, 10, 100, 1000 gridlines intuitively without having to relearn the axis.

One practical tip: when you build a log-scale chart, label each gridline with the actual value, not the logarithm. Readers should see "10, 100, 1000" rather than "1, 2, 3", because the logarithm is the position, not the quantity. The logarithm is the arithmetic you do to place points on the chart; the values themselves stay in the original units. Treating the log value as a position and the original number as the label is the convention that keeps log-scaled charts honest and easy to read.