I2S Audio Interface Timing Calculator
Calculate I2S bit clock (BCLK), word clock (LRCLK/WCLK), and data rate for audio interfaces at any sample rate, bit depth, and channel count.
Philips I²S framing · BCLK = f_s × word length × channelsAPI slug i2s-timing
Inputs
One frame
sample point
Standard values of Sample Rate
Select a row to use it| Sample Rate | Bit Clock (BCLK) | MCLK Divider | Sample-Rate Error | Status |
|---|---|---|---|---|
| 384kHz | 44 | +0.227% | CHECK | |
| 768kHz | 22 | +0.227% | CHECK | |
| 1.058MHz | 16 | 0.000% | PASS | |
| 1.536MHz | 11 | +0.227% | CHECK | |
| 2.117MHz | 8 | 0.000% | PASS | |
| 2.304MHz | 7 | +5.000% | CHECK | |
| 4.234MHz | 4 | 0.000% | PASS | |
| 4.608MHz | 4 | −8.125% | CHECK | |
| 8.467MHz | 2 | 0.000% | PASS | |
| 9.216MHz | 2 | −8.125% | CHECK |
- Word Clock (LRCLK)WCLK
- 44.1kHz
- Data RateDR
- 2.117Mbps
- Actual BCLKBCLKset
- 2.1168MHz
Formula
Philips I2S Bus Specification, 1996
| Symbol | Quantity | Your value |
|---|---|---|
| Fs | Sample rate (kHz) | 44.1 kHz |
| Nbits | Bit depth per sample (bits) | — |
| Nch | Number of channels | — |
| BCLK | Bit clock frequency (Hz) | 2.117 MHz |
Assumptions
5 items
- 01BCLK is the sample rate × the bits per sample × the channels: each slot is as wide as the sample word, so 24-bit audio in 32-bit slots is entered as a bit depth of 32.
- 02BCLK is divided from the master clock by a whole number, the nearest to MCLK/BCLK (a half up), and the sample rate follows from the BCLK that gives.
- 03The sample-rate error is the actual rate over the one asked for; the budget, ±0.1 % by default, is IEC 60958-3's Level II clock accuracy (1000 ppm) for consumer digital audio. A converter slaved to the same clocks does not care about the absolute rate.
- 04Clock jitter, the codec's MCLK ratio requirements and setup and hold times are not modelled.
- 05The drawing is one frame in Philips I²S format: WS low for the left channel, the data MSB first one BCLK after each WS edge, changing on BCLK's falling edges and sampled on its rising ones; more than two channels are drawn as TDM with a one-bit frame sync.
Worked example
48 kHz, 24-bit stereo from a 12.288 MHz MCLK
A codec is to run at 48 kHz with 24-bit samples packed into stereo frames, its BCLK divided from a 12.288 MHz master clock (256 × 48 kHz). What sample rate does it get?
| Step | Expression | Result |
|---|---|---|
| BCLK required | 48 kHz × 24 × 2 | 2.304 MHz |
| Divider | round(12.288/2.304) | 5 |
| Actual BCLK | 12.288 MHz/5 | 2.4576 MHz |
| Actual sample rate | 2.4576 MHz/(24 × 2) | 51.2 kHz |
| Sample-rate error | (51.2 − 48)/48 × 100 | +6.667 % |
| With 32-bit slots instead, the divider is whole | 12.288 MHz/(48 kHz × 32 × 2) | 4 |
How it works
This calculator determines I2S clock frequencies and timing relationships for digital audio interfaces. Audio engineers and embedded developers use it to configure DACs, ADCs, and audio codecs per the Philips I2S specification (now NXP). I2S uses 3 signals: serial data (SD), bit clock (BCLK/SCK), and word select (WS/LRCLK). The fundamental relationship is: BCLK = sample_rate x bits_per_channel x channels. For CD-quality audio (44.1 kHz, 16-bit stereo): BCLK = 44100 x 16 x 2 = 1.4112 MHz. The master clock (MCLK) is typically 256x or 512x the sample rate, providing internal PLL reference. The I2S bus specification is defined in the original Philips Semiconductors document 'I2S Bus Specification' (February 1986, revised June 1996), now maintained by NXP Semiconductors. Audio sample rate and bit depth requirements for professional applications are governed by AES3-2009 (AES standard for digital audio — Digital input-output interfacing) and IEC 60958-1 (Digital audio interface). At 96 kHz/24-bit, BCLK = 96000 x 24 x 2 = 4.608 MHz, and MCLK = 96000 x 256 = 24.576 MHz. Per the I2S specification, data must be stable for t_setup >= 10 ns before BCLK rising edge and t_hold >= 10 ns after - at 12.288 MHz BCLK, the 81.4 ns half-period provides 8x margin.
Practical tips
- Per AES-6id-2006, use dedicated audio clock crystals (49.152 MHz, 24.576 MHz, 22.5792 MHz) for sample rates that are multiples of 48 kHz or 44.1 kHz
- For master mode operation, generate MCLK first, then derive BCLK and LRCLK synchronously to eliminate clock domain crossing jitter
- Keep I2S trace lengths under 15 cm for BCLK > 6 MHz to maintain setup/hold margins - add 33 Ohm series termination for longer runs
Common mistakes
- Using 24 MHz crystal for 48 kHz audio (yields 24/256 = 93.75 kHz, 95% error) - use 12.288 MHz crystal for exact 48 kHz (12.288/256 = 48.000 kHz)
- Mismatching MCLK ratio between master and slave - most DACs require exactly 256x or 512x, not arbitrary ratios
- Routing BCLK and LRCLK as single-ended signals over cables >30 cm - use LVDS or twisted pair to prevent crosstalk-induced jitter above 50 ps
Frequently asked questions
2 questions
What is the typical MCLK frequency?
256x or 512x the sample rate per most DAC/codec datasheets. For 48 kHz: MCLK = 12.288 MHz (256x) or 24.576 MHz (512x). For 44.1 kHz: MCLK = 11.2896 MHz (256x) or 22.5792 MHz (512x). Some devices support 128x for low-power operation, reducing MCLK to 6.144 MHz at 48 kHz.
How does bit depth affect I2S timing?
BCLK scales directly with bit depth. At 48 kHz stereo: 16-bit requires BCLK = 1.536 MHz, 24-bit requires 2.304 MHz, 32-bit requires 3.072 MHz. Higher bit depths increase data rate and EMI, requiring careful PCB routing - 32-bit at 192 kHz generates 12.288 MHz clock edges with 2-3 ns rise times.
Shop Components
As an Amazon Associate we earn from qualifying purchases.