Audio sample-rate converter
Samples to milliseconds (ms) calculator
Convert sample frames to milliseconds and milliseconds back to frames at 44.1, 48, 96 or any custom sample rate from 1–768 kHz.
Samples to ms: settings and guide
Worked example
Example: 512 sample frames at 48 kHz
At 48,000 sample frames per second, 512 frames last 10.666667 milliseconds. In reverse, 10 milliseconds at 48 kHz equals exactly 480 frames.
Good to know
Assumptions and limits
- Sample rate counts sample frames per second, so 48 kHz means 48,000 frames per second across every channel.
- Channel count does not change duration; each frame contains one simultaneous sample value per channel.
- Exact whole-frame results are detected with decimal-rational arithmetic. Other results include an exact nearest-frame recommendation.
- A buffer's frame count gives nominal one-way buffer duration, not complete measured round-trip interface latency.
Review BeatTiming's calculation accuracy, precision and release-testing methodology.
Sample-rate quick reference
Samples to ms and milliseconds to samples
Common buffer sizes have different durations at different sample rates. For example, 2,048 sample frames is 46.439909 ms at 44.1 kHz, 42.666667 ms at 48 kHz and 21.333333 ms at 96 kHz.
To turn a measured timing offset into a DAW setting, select the session's sample rate and enter the offset magnitude in the Milliseconds field. The whole-sample setting beneath the results gives the nearest integer frame count, its actual duration and the remaining timing difference. Copy the frame count when the control expects samples; use milliseconds directly when that is the control's unit.
For example, 1 ms at 44.1 kHz is 44.1 frames. The nearest whole-frame setting is 44 frames, approximately 0.997732426304 ms, so the offset is about 2.267574 microseconds shorter. At 48 kHz, 1 ms is exactly 48 frames and the rounding difference is zero. The session's sample rate therefore matters even when the requested time is unchanged.
Whole-frame choices and the sign of the timing difference are computed from the entered decimal value before display rounding. Durations and microsecond differences are displayed as rounded decimals. Exactly halfway values choose the higher frame count; advance-versus-delay direction is a separate choice in your audio software.
Sample frames to milliseconds
Common sample-frame counts converted to milliseconds at 44.1, 48 and 96 kHz| Frames | 44.1 kHz | 48 kHz | 96 kHz |
|---|
| 128 | 2.902494 ms | 2.666667 ms | 1.333333 ms |
|---|
| 256 | 5.804989 ms | 5.333333 ms | 2.666667 ms |
|---|
| 512 | 11.609977 ms | 10.666667 ms | 5.333333 ms |
|---|
| 1,024 | 23.219955 ms | 21.333333 ms | 10.666667 ms |
|---|
| 2,048 | 46.439909 ms | 42.666667 ms | 21.333333 ms |
|---|
| 4,096 | 92.879819 ms | 85.333333 ms | 42.666667 ms |
|---|
Milliseconds to sample frames
Common millisecond values converted to sample frames at 44.1, 48 and 96 kHz| Time | 44.1 kHz | 48 kHz | 96 kHz |
|---|
| 1 ms | 44.1 | 48 | 96 |
|---|
| 5 ms | 220.5 | 240 | 480 |
|---|
| 10 ms | 441 | 480 | 960 |
|---|
| 20 ms | 882 | 960 | 1,920 |
|---|
Quick answers
How many milliseconds is 512 sample frames?
At 48 kHz, 512 frames is 10.666667 ms. At 44.1 kHz, the same 512 frames is about 11.609977 ms.
How many sample frames are in 1 millisecond?
There are 48 frames per millisecond at 48 kHz and 44.1 frames per millisecond at 44.1 kHz.
How do you convert milliseconds to sample frames?
Multiply milliseconds by the sample rate, then divide by 1,000. At 48 kHz, 10 ms equals exactly 480 frames.
Does stereo double the duration?
No. Stereo doubles the number of stored sample values, but both channels play together, so the duration stays the same.
Should a fractional frame result be rounded?
Physical sample-frame positions are whole numbers. If a device or DAW requires an integer, use the displayed nearest whole-frame value.
How do I enter a 1 ms offset at 44.1 kHz?
One millisecond is 44.1 sample frames at 44.1 kHz. A whole-sample control can use 44 frames, which lasts approximately 0.997732426304 ms: about 2.267574 microseconds shorter than requested. The calculator shows this difference and lets you copy the integer frame count.
Does a shorter duration mean I should move the track earlier?
No. The rounding difference compares two durations. Choose whether to advance or delay the audio based on the alignment you need and your DAW's sign convention. This calculator supplies the non-negative offset magnitude.