Skip to content

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

Sign in to saveSave

Inputs

Example
Audio sample rate (e.g., 44.1, 48, 96, 192 kHz)

100 Hz to 768 kHz

Bits per sample (common: 16, 24, 32 bits)
bits

8 to 64 bits

Number of audio channels (1 for mono, 2 for stereo)

1 to 32

The clock BCLK is divided from by a whole number: 16.9344 MHz is 384 × 44.1 kHz, 12.288 MHz is 256 × 48 kHz

100 kHz to 200 MHz

The sample-rate error the link can take; ±0.1 % (1000 ppm) is IEC 60958-3's Level II clock accuracy for consumer digital audio
%

0.001 to 10 %

Sample-Rate ErrorPASS
0.000%
budget ±0.1 %
Bit Clock (BCLK)
2.117MHz
MCLK Divider
8
Actual Sample Rate
44.1kHz
BCLK Period
472.4ns

One frame

BCLKWSSDLR0xA50xA5BCLK 472 nsframe 22.7 µs0 s5 µs10 µs15 µs20 µs

sample point

Standard values of Sample Rate

Select a row to use it
Sample RateBit Clock (BCLK)MCLK DividerSample-Rate ErrorStatus
384kHz44+0.227%CHECK
768kHz22+0.227%CHECK
1.058MHz160.000%PASS
1.536MHz11+0.227%CHECK
2.117MHz80.000%PASS
2.304MHz7+5.000%CHECK
4.234MHz40.000%PASS
4.608MHz4−8.125%CHECK
8.467MHz20.000%PASS
9.216MHz2−8.125%CHECK
Word Clock (LRCLK)WCLK
44.1kHz
Data RateDR
2.117Mbps
Actual BCLKBCLKset
2.1168MHz

Formula

Philips I2S Bus Specification, 1996
BCLK=Fs×Nbits×NchBCLK = F_s \times N_{bits} \times N_{ch}
SymbolQuantityYour value
FsSample rate (kHz)44.1 kHz
NbitsBit depth per sample (bits)—
NchNumber of channels—
BCLKBit clock frequency (Hz)2.117 MHz

Assumptions

5 items
  1. 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.
  2. 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.
  3. 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.
  4. 04Clock jitter, the codec's MCLK ratio requirements and setup and hold times are not modelled.
  5. 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?

StepExpressionResult
BCLK required48 kHz × 24 × 22.304 MHz
Dividerround(12.288/2.304)5
Actual BCLK12.288 MHz/52.4576 MHz
Actual sample rate2.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 whole12.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.

  • USB-UART AdapterUSB to serial adapter for protocol debugging and flashingAmazon →
  • USB Logic Analyzer8-channel USB logic analyzer for capturing digital bus trafficAmazon →