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

Common sample rates
Sample frames → milliseconds10.6666666667 ms0.0106666666667 seconds at exactly 48,000 Hz
Milliseconds → sample frames480 sample framesExact whole-frame result

Use this whole-sample setting

For 10 ms at 48,000 Hz, enter:

480 sample frames
Actual duration
≈ 10 ms
Difference from requested timing
0 µs · exact whole-frame match

The nearest whole frame minimizes the timing difference. Halfway values round to the higher frame count.

Use this as the offset magnitude. Choose whether to advance or delay the audio in your DAW. A shorter duration does not by itself tell you which direction to move a track.

A sample frame is one simultaneous sample position across all channels. The selected sample rate counts frames per second, so channel count does not change timing.

Formula

How to convert sample frames to milliseconds and back

At a sample rate of R frames per second, frames to ms equals frames divided by R, multiplied by 1,000. For milliseconds to frames, multiply milliseconds by R and divide by 1,000. At 48 kHz, one millisecond is 48 frames and 512 frames is 10.666667 ms.

milliseconds = sample frames ÷ sample rate × 1,000; sample frames = milliseconds × sample rate ÷ 1,000

  1. 01

    Select the sample rate used by your audio interface, DAW session or file.

  2. 02

    Enter a sample-frame count to translate plugin latency, buffer size or phase offset into milliseconds.

  3. 03

    Enter milliseconds to find the equivalent frame offset, then use the nearest whole frame when required.

  4. 04

    Use the whole-sample setting to see the actual duration and rounding difference, then copy the frame count into your DAW's sample-offset control.

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
Frames44.1 kHz48 kHz96 kHz
1282.902494 ms2.666667 ms1.333333 ms
2565.804989 ms5.333333 ms2.666667 ms
51211.609977 ms10.666667 ms5.333333 ms
1,02423.219955 ms21.333333 ms10.666667 ms
2,04846.439909 ms42.666667 ms21.333333 ms
4,09692.879819 ms85.333333 ms42.666667 ms

Milliseconds to sample frames

Common millisecond values converted to sample frames at 44.1, 48 and 96 kHz
Time44.1 kHz48 kHz96 kHz
1 ms44.14896
5 ms220.5240480
10 ms441480960
20 ms8829601,920
Quick answers

Frequently asked questions

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.