Video bitrate and file size calculator

How big will a video be at a given bitrate — or which bitrate fits a size limit? Enter the length and the calculator does the rest, container overhead included.

Calculate

Seconds, m:ss or h:mm:ss — for example 90, 1:30 or 1:02:00.

For the bits-per-pixel rating. In “Bitrate for a size”, the original resolution: the calculator suggests the size the bitrate can afford.

File size

—

How the size is calculated

A video file is almost entirely its video and audio streams, and each stream’s size is its bitrate — bits per second — times its length:

size = (video bitrate + audio bitrate) × length ÷ 8 + container

  • ÷ 8 turns bits into bytes. Bitrates are in kilobits or megabits per second (1 Mbps = 1,000,000 bits per second), sizes in megabytes.
  • Container is the MP4 header and index: about 16 bytes per video frame and 12 per audio packet, so around 73.0 KB for one minute at 30 fps.

Working backwards from a size limit gives the bitrate that fits it: video bitrate = (size − container) × 8 ÷ length − audio bitrate. In that mode the calculator also keeps a 4% margin, as the video compressor does, because encoders don’t hit the requested bitrate exactly.

The result is the size an encoder aims for with a constant or average bitrate. Encoders set to a quality level instead (CRF in HandBrake or ffmpeg, “quality” sliders in phone apps) spend fewer bits on simple scenes and more on busy ones, so their files can be much smaller or larger than the formula says.

Common bitrates and what they cost

YouTube publishes the bitrates it recommends for uploads (YouTube Help, last checked 30 November 2026). The last column is the size of one minute at the standard-frame-rate value with 128 kbps audio, computed with the formula above.

Resolution24/25/30 fps48/50/60 fps1 minute (24–30 fps)
2160p (4K)35–45 Mbps53–68 Mbps≈ 301 MB at 40 Mbps
1440p16 Mbps24 Mbps≈ 121 MB
1080p8 Mbps12 Mbps≈ 61.0 MB
720p5 Mbps7.5 Mbps≈ 38.5 MB
480p2.5 Mbps4 Mbps≈ 19.8 MB
360p1 Mbps1.5 Mbps≈ 8.5 MB

For the sound, the same page recommends 128 kbps for mono, 384 kbps for stereo and 512 kbps for 5.1. Those are upload values, chosen so that YouTube’s own re-encoding starts from a clean source; for a file you send to someone, 128 to 192 kbps stereo AAC is usually plenty.

Bits per pixel: is the bitrate enough for the resolution?

The same bitrate looks very different at 480p and at 4K, because it is shared between all the pixels of every frame. The calculator shows it as bits per pixel:

bits per pixel = video bitrate ÷ (width × height × frames per second)

As a rule of thumb for H.264, around 0.1 looks clean on typical footage, below 0.07 compression starts to show and below 0.04 the picture falls apart. Newer codecs (H.265/HEVC, VP9, AV1) need noticeably fewer bits for the same quality, and static footage — a talking head, a screen recording — needs far fewer than sport or confetti. Treat the rating as a first estimate, not a promise.

FAQ

Why is my file a different size from the result?
Most likely your encoder used a quality setting (CRF) rather than a fixed bitrate, so the bitrate varies with the content. Variable-bitrate encoders also drift a few percent around their target, and some apps add extra tracks such as subtitles or metadata.
MB or MiB?
The calculator uses decimal units: 1 MB = 1,000,000 bytes, as upload limits usually do. Windows shows sizes in binary units (1 MiB = 1,048,576 bytes), so a 20 MB file appears there as about 19.1 MB. The result shows both.
How do I get a video to this size?
The video compressor does this calculation for your actual video, picks the resolution and encodes it to fit, in your browser. To make a video shorter first, use the video trimmer.
Does the codec change the size?
Not for a given bitrate: 8 Mbps is 60 MB per minute in H.264 or AV1 alike. The codec changes the quality you get for those 8 Mbps.