How to Calculate Bitrate

Updated · Figures verified · Sources

To calculate bitrate, divide the file size in bits by the running time in seconds: bitrate = file size in bytes × 8 ÷ duration in seconds. A 2 GB file that runs 30 minutes is 2,000,000,000 × 8 ÷ 1,800 = 8.89 Mb/s.

Run it the other way to size a file (size = bitrate × seconds ÷ 8), or to find the bitrate that fits a size limit. The free bitrate calculator does all three in your browser. Below: the three calculations worked through, real camera data rates, Apple's ProRes rates, and what YouTube, Twitch and Facebook recommend for live streams.

Open the bitrate calculator

Bits, bytes and the units that trip people up

Bitrate is how many bits a file or stream uses per second of running time. Video rates are quoted in megabits per second: 1 Mb/s = 1,000 kb/s = 1,000,000 bits per second. Network speeds use bits (Mb/s); drive and card speeds usually use bytes (MB/s). One byte is 8 bits, so 1 MB/s = 8 Mb/s.

Sizes are decimal when drive makers and macOS count them (1 GB = 109 bytes) and binary when Windows does (it labels 230 bytes "GB"). The same 2 "GB" file read the Windows way is 9.54 Mb/s over 30 minutes, 7.4% more. The TB vs TiB guide shows which tools count which way.

The three bitrate calculations

1. Bitrate from file size and duration
Bitrate (b/s) = File size (bytes) × 8 ÷ Duration (s)

The answer is the file's overall rate: video, audio and container together.

Example: A 2 GB file that runs 30 minutes

Calculation:
2,000,000,000 × 8 ÷ 1,800
Result:
8,888,889 b/s = 8.89 Mb/s
2. File size from bitrate and duration
File size (GB) = Bitrate (Mb/s) × Duration (s) ÷ 8,000

Dividing by 8 turns bits into bytes; dividing by 1,000 turns MB into GB.

Example: 8.89 Mb/s for 30 minutes

Calculation:
8.89 × 1,800 ÷ 8,000
Result:
2.00 GB
3. Bitrate for a target file size
Video bitrate (Mb/s) = Size (GB) × 8,000 ÷ Duration (s) − Audio (Mb/s)

For an upload limit or a delivery spec that caps file size. Aim a little under: the container adds a small overhead.

Example: A 45-minute episode that must fit in 4 GB, with 192 kb/s audio

Calculation:
4 × 8,000 ÷ 2,700 = 11.85 Mb/s; − 0.192 = 11.66 Mb/s
Result:
Encode the video at about 11.5 Mb/s

Data rates of real camera formats

Camera data rates decide how many cards a shoot needs and how much storage post has to buy. The table is built from CineMath's camera database, using only formats for which the maker publishes a rate at each frame rate, read at 24 fps.

Maker-published data rate at 24 fps (23.976 where 24.000 is not listed), with the storage it takes. 1 TB = 10¹² bytes.
CameraFormatMb/sMB/sGB per hourMinutes per TB
Canon EOS C400Cinema RAW Light HQ · 6K FF · 24p1,730216.3778.577
Canon EOS C400Cinema RAW Light ST · 6K FF · 24p850106.3382.5157
Canon EOS C400Cinema RAW Light LT · 6K FF · 24p55369.1248.9241
Canon EOS R5 CCinema RAW Light ST · 8K FF · 24p1,580197.5711.084
Canon EOS R5 Mark IIXF-AVC S Intra HQ · 4K DCI · 24p48060.0216.0278
Leica SL3-SProRes 422 HQ · C4K · 24p77997.4350.6171
DJI Ronin 4D-8KProRes 422 HQ · 8K FF · 24p2,880360.01,296.046
DJI Ronin 4D-8KProRes 422 HQ · 4K FF · 24p72090.0324.0185
Sony FX6 (ILME-FX6V)XAVC-I · DCI 4K · 24p24030.0108.0556
Sony FX3XAVC S-I · DCI 4K · 24p24030.0108.0556

GB per hour = Mb/s × 3,600 ÷ 8 ÷ 1,000. Minutes per TB = 8 × 1012 ÷ (Mb/s × 106) ÷ 60. Formatted cards hold slightly less than their label. For another frame rate, use the manufacturer’s figure at that setting.

Worked example: storage for a five-day shoot

A documentary shoots 5 days on a Canon EOS C400 in Cinema RAW Light LT, 6K FF at 24 fps, recording about 3 hours a day. The post supervisor sizes the drives:

  • • Camera originals: 553 Mb/s × 3,600 ÷ 8,000 = 248.9 GB an hour; × 15 hours = 3.73 TB.
  • • Three copies (two on set, one at the post house): 11.2 TB, so three drives of at least 4 TB each, more with headroom.
  • • Edit proxies in ProRes 422 Proxy at 1920 × 1080 24p (36 Mb/s, Apple's target): 16.2 GB an hour, 243 GB for the shoot. The whole offline fits on one laptop drive.

The storage planning guide goes further into copies, RAID and archive; the RAID calculator sizes the arrays.

Apple ProRes target data rates

ProRes is the most common editing and delivery codec, and Apple publishes a target rate for each flavor, raster and frame rate. Its rates are close to a fixed number of bits per pixel: ProRes 422 HQ spends 3.54–3.56 bits per pixel per frame in every row below. That lets you estimate rasters Apple doesn't list. At 6144 × 3240 24p, 3.552 bits × 6144 × 3240 × 24 = 1,697 Mb/s; Apple's own 6K table (p. 21 of the white paper) lists 1,697.

Apple ProRes target data rates in Mb/s (4444 and 4444 XQ without alpha). Apple's frame-rate labels. Apple prints the same figure for 23.976 (chart, p. 10; LT and 422 shown); exact scaling would be 0.1% lower, below Apple's rounding.
RasterRateProRes 422 ProxyProRes 422 LTProRes 422ProRes 422 HQProRes 4444ProRes 4444 XQ
1920×108024p3682117176264396
1920×108050i, 25p3885122184275413
1920×108060i, 30p45102147220330495
1920×108050p76170245367551826
1920×108060p91204293440660990
3840×216024p1453284717071,0611,591
3840×216025p1513424927371,1061,659
3840×216030p1824105898841,3261,989
3840×216050p3036849831,4752,2123,318
3840×216060p3638211,1781,7682,6523,977
4096×216024p1553505037541,1311,697
4096×216025p1623655247861,1801,769
4096×216030p1944376299431,4142,121
4096×216050p3237301,0491,5732,3593,539
4096×216060p3888751,2571,8862,8284,242

GB per hour for any cell = Mb/s × 0.45, which reproduces Apple's own GB/hr column: 422 HQ at UHD 24p is 318 GB an hour.

Live-stream bitrates by platform

For a live stream, the bitrate is limited twice: by your upload speed and by what the platform accepts. Leave headroom on the connection, then use the platform's figure if it is lower.

Video bitrate for a live stream
Video bitrate = Upload speed × 0.8 − Audio bitrate, capped at the platform's figure

The 80% is a common rule of thumb for headroom, not a platform rule. Twitch says a stable stream matters more than a high bitrate.

Example: A 10 Mb/s upload, 1080p60, 160 kb/s audio

Calculation:
10 × 0.8 = 8 Mb/s; − 0.16 = 7.84 Mb/s
Result:
Twitch: 6 Mb/s (its 1080p60 figure). YouTube: about 7.8 Mb/s, above its 6 Mb/s minimum but under its 17 Mb/s recommendation.
Each platform's H.264 recommendation for live ingest. YouTube: recommended (minimum). Twitch: its x264/NVENC specs, CBR. Facebook: recommended range.
FormatYouTube LiveTwitchFacebook Live
2160p6050 Mb/s (min 14)——
2160p3042 Mb/s (min 11)——
1440p6034 Mb/s (min 8)——
1080p6017 Mb/s (min 6)6 Mb/s4.5–9 Mb/s
1080p3014 Mb/s (min 5)4.5 Mb/s3–6 Mb/s
720p608 Mb/s (min 3)4.5 Mb/s2.25–6 Mb/s
720p308 Mb/s (min 3)3 Mb/s1.5–4 Mb/s

All three ask for a keyframe every 2 seconds. YouTube's AV1 and HEVC figures are lower for the same picture: 2160p60 35 Mb/s (min 10), 1080p60 12 Mb/s (min 4), 1080p30 10 Mb/s (min 4). Audio: YouTube 128 kb/s AAC or MP3 stereo; Twitch AAC-LC, 96 kb/s recommended, 160 kb/s maximum; Facebook AAC-LC, 128 kb/s, 256 kb/s maximum. For uploads rather than live streams, see the YouTube video specs.

Common bitrate mistakes

  • • Reading MB/s as Mb/s. They differ by a factor of 8.
  • • Mixing decimal GB and binary GiB. They are 7.4% apart.
  • • Leaving audio out. Six channels of 24-bit 48 kHz PCM add 6.9 Mb/s.
  • • Dividing by minutes. The formula wants seconds.
  • • Streaming at the full measured upload. Any dip in the connection drops frames.

In CineMath

The app's Data & Storage calculator solves for file size, record time or the bitrate that hits a target size, with camera presets carrying each maker's published rates (Pro). For a finished file, Upload Time works out how long it takes to send.

Sources

  1. DJI Ronin 4D X9-8K recording specifications, DJI. ProRes 422 HQ rows for the full-frame 8192 × 4320 and 4096 × 2160 rasters. The chart gives storage rates in MB/s for each listed frame rate. (checked )
  2. YouTube Help: Choose live encoder settings, bitrates, and resolutions, Google. H.264 and AV1/HEVC recommended and minimum bitrates per resolution and frame rate (custom stream key, manual settings); AAC or MP3 audio at 128 kb/s stereo; keyframes every 2 s, no more than 4 s; CBR. (checked )
  3. Twitch Help: Broadcasting Guidelines, Twitch. x264 and NVENC specs: 1080p60 6,000 kb/s, 1080p30 and 720p60 4,500 kb/s, 720p30 3,000 kb/s, CBR, 2 s keyframes; AAC-LC audio, 96 kb/s recommended, 160 kb/s maximum. (checked )
  4. Meta for Developers: Live Video API reference, recommended settings, Meta. Video bitrate ranges per resolution and frame rate; AAC-LC audio at 44.1 or 48 kHz, 128 kb/s preferred, 256 kb/s maximum; keyframes every 2 s, no more than 4 s. (checked )
  5. Apple ProRes White Paper (April 2022), Appendix: Target Data Rates, Apple. ProRes 422 Proxy to 4444 XQ target rates for 1920 × 1080, 3840 × 2160 and 4096 × 2160 at 24p to 60p. Still the current edition at this URL. (checked )
  6. CineMath camera database, CineMath. 164 cameras, each figure checked against the manufacturer's published specs; exported 2026-11-28. The camera data-rate table uses only modes for which the maker publishes a rate per frame rate.