Checking per-channel sample counts against interleaved values
A sample rate counts sample times per second, and a stereo recording holds two values at each sample time. This guide shows how a miscount doubles the rate.
Two ways to count the same recording
A digital recording captures the signal at regular instants. At each instant, every channel gets one value. A stereo recording therefore stores two values per instant, and a six-channel recording stores six. You can count the instants, which gives the sample rate when divided by time, or you can count all the values, which gives a number that is larger by the channel count. Both are legitimate counts of different things. Trouble starts when a number from one counting convention is placed into a formula that expects the other, because the result is off by the channel count and looks plausible.
The default case: 480,000 sample times over 10 seconds
The sample rate calculator divides the supplied count by the duration. With 480,000 sample times and 10 seconds it returns 48,000 per second, a standard rate for professional audio and video. Because the recording is stereo, those sample times contain 2 × 480,000 = 960,000 channel values. The rate tool has no way to know which count you entered, so it reports 48,000 for the first and a different number for the second. Both entries are valid arithmetic. Only one of them describes the sample rate as audio engineers define it.
The doubled rate that results from a miscount
Enter 960,000 over 10 seconds and the calculator returns 96,000. That number counts channel values per second. It is a valid statement about data volume, since 96,000 values arrive each second, and a wrong statement about sample rate, which stays at 48,000. A person who sees 96,000 and believes the rate is 96 kHz might assume higher bandwidth than the recording has. The same recording is now described as having twice the capture rate, so the confusion is not harmless. Writing down what was counted, sample times or values, next to every number prevents it. The reverse slip also occurs: a person who divides a value count by the channel count twice ends up with half the true rate, 24,000 instead of 48,000 for the default recording, and the result looks like a low-quality format.
What the formats call these counts
Terminology differs between sources. Many audio libraries use the word frame for one sample time across all channels, so a stereo frame holds two samples. Others use sample to mean a single channel value, and the same stereo recording then has twice as many samples as frames. Specifications for file formats usually define their own terms. When a header reports a total sample count, check its documentation to see whether the figure counts frames or individual values. The safest approach is to compute a duration both ways and see which one matches the known length of the recording.
Compact disc audio as a check
Compact disc audio runs at 44,100 sample times per second. A 3-minute track lasts 180 seconds and holds 44,100 × 180 = 7,938,000 sample times. Entering that count with 180 seconds returns 44,100. The track also holds 15,876,000 channel values because it is stereo, and entering that figure returns 88,200 per second, which is the value rate and not the sample rate. Knowing that the standard rate is 44,100 gives a reference point: if a calculation yields 88,200 for a CD, you counted values, and dividing by the channel count recovers the rate.
More channels, larger gaps
The gap grows with channel count. A 5.1 layout has six channels, so a recording at 48,000 sample times per second delivers 288,000 values per second. Over 10 seconds that is 2,880,000 values, and entering that count returns 288,000, six times the actual rate. A mono voice recording at 16,000 per second over 5 seconds holds 80,000 values, which equals its sample time count, so the two counts agree there. The mix-up matters most for multichannel material, and the fix is the same: divide the value count by the number of channels before entering it.
Connecting to data size
Counting values is the right step when you work toward byte size. Each value takes a fixed number of bytes, so total bytes equal values times bytes per value. For 16-bit values, which occupy 2 bytes, a stereo recording at 48,000 sample times per second needs 48,000 × 2 × 2 = 192,000 bytes per second. This is why the channel count appears in file size formulas and not in the sample rate itself. Sample rate describes timing, and the data volume combines timing, channel count and bit depth. Keeping those roles separate prevents a double application of the channel factor.
Where the counts come from
Counts reach you from many places: file headers, driver logs, analyzer exports, programming interfaces and spec sheets. Each may follow its own convention. A software buffer of 1,024 might hold 1,024 frames or 1,024 individual values, and a stereo buffer of 2,048 values holds 1,024 frames. Look for the unit named in the source, and if it is missing, test with a known duration. Play or generate a tone of exactly 10 seconds, read the reported count, and divide: a count near 480,000 for a stereo file at 48,000 means frames, while a count near 960,000 means individual values. That one trial removes the guesswork for every later file from the same tool. An interface reporting 48,000 values per second for a stereo stream is running at 24,000 sample times per second, far below the common rates, which is a clue that the unit is the value.
What the rate tool cannot detect
The rate tool divides the supplied count by the duration. It cannot identify what was counted, whether the duration is accurate, or whether the stream has gaps or a variable rate. Preserve whether a source reports frames, per-channel samples or interleaved values before you enter a number, and record the unit with the result. Variable-rate or packetized streams may report averages over a window, so a computed rate over a short interval can differ from the nominal rate by a small amount. A recording made at 48,000 sample times per second that the software labels 47,990 over a short test is more likely showing timing jitter in the measurement than a real change in rate. Use a long, known duration for the check, and compare against the rate printed in the format description. For a stereo file, dividing the interleaved value count by two before entering it gives the figure the format calls the sample rate.
Reproduce the checks
Sample-time count
Open the Sample Rate Calculator and enter:
- Samples per channel
480000- Recording duration
10
Expected output:
Sample rate
48000The count describes sample times for each channel.
Aggregate value count entered unchanged
Open the Sample Rate Calculator and enter:
- Samples per channel
960000- Recording duration
10
Expected output:
Sample rate
96000This larger ratio counts channel values per second.
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.
Sources
- Primary reference ↗ · 2026-10-08