What this calculator does
When you encode a video to fit a specific file size — for an upload limit, an email attachment, or a disc — you need to know the right bitrate. This tool reverses the usual relationship: instead of guessing a bitrate and checking the resulting size, you tell it the target size and clip length, and it returns the exact average bitrate in kilobits per second (kbps) that produces that file.
How to use it
Enter the target file size in megabytes (MB), then enter the clip duration in minutes and seconds. Optionally enter your audio bitrate so the calculator subtracts it and shows how much bitrate is left for the video track. The total bitrate is what you'd set as the overall target in most encoders; the video bitrate is what you'd set for the video stream when audio is a separate fixed track.
The formula explained
The core relationship is $$\text{Video Bitrate (kbps)} = \frac{\text{File Size (MB)} \times 8192}{D} - \text{Audio (kbps)} \\[1.5em] \text{where}\quad D = 60 \times \text{Minutes} + \text{Seconds}$$ The factor \(8192\) converts megabytes to kilobits: 1 byte = 8 bits, and 1 MB = 1024 KB, so \(1\text{ MB} = 1024 \times 8 = 8192\) kilobits. Dividing total kilobits by the number of seconds gives kilobits per second. Subtracting the audio bitrate leaves the video bitrate.
Worked example
You want a 100 MB file for a 5-minute (300 second) clip with 128 kbps audio. Total bitrate = $$100 \times 8192 \div 300 = 819200 \div 300 \approx 2730.67 \text{ kbps}.$$ Subtracting 128 kbps audio leaves about \(2602.67\) kbps for video. Set your encoder to roughly 2600 kbps video and you'll land near 100 MB.
Typical Video Bitrate Ranges by Resolution
The table below lists the H.264 SDR upload bitrates that YouTube's help documentation recommends. They are a widely cited reference point for 'good quality' rather than a minimum. They apply to typical H.264 SDR uploads, and the same quality needs different bitrates for other codecs and content types.
| Resolution | 24–30 fps (video) | 48–60 fps (video) |
|---|---|---|
| 480p | 2.5 Mbps (2,500 kbps) | 4 Mbps (4,000 kbps) |
| 720p | 5 Mbps (5,000 kbps) | 7.5 Mbps (7,500 kbps) |
| 1080p | 8 Mbps (8,000 kbps) | 12 Mbps (12,000 kbps) |
| 1440p (2K) | 16 Mbps (16,000 kbps) | 24 Mbps (24,000 kbps) |
| 2160p (4K) | 35–45 Mbps | 53–68 Mbps |
Source: YouTube recommended upload encoding settings (SDR). Mbps and kbps here use the usual 1 Mbps = 1,000 kbps convention.
Common audio bitrates (AAC)
| Audio bitrate | Typical use |
|---|---|
| 96 kbps | Speech, voice-over, small files; acceptable for simple stereo |
| 128 kbps | Common default for stereo web video |
| 192 kbps | Higher-quality stereo music |
| 256 kbps | High-quality stereo; close to transparent for most listeners |
Enter the audio bitrate you plan to use in the calculator so it is subtracted from the total budget.
Interpreting Your Result
The result is an average bitrate over the whole clip. Real encoders spend more bits on complex, fast-moving scenes and fewer on simple ones, so instantaneous bitrate varies around this average.
What too low a bitrate looks like
When the bitrate is too low for the resolution and motion, the encoder must discard detail. The typical symptoms are visible blocking (square macroblock edges), smeared detail, and banding (stepped color in gradients such as skies). The same bitrate looks fine at 480p but poor at 1080p, because the bits are spread over more pixels. If the result is low, reduce resolution or frame rate before accepting heavy artifacts.
CBR, VBR and 2-pass
- CBR (constant bitrate): holds the rate nearly fixed. File size is very predictable, but quality is wasted on easy scenes and starved on hard ones.
- VBR (variable bitrate), 1-pass: quality is better for the same average, but the final size can miss the target.
- 2-pass VBR: the first pass analyzes the clip and the second distributes bits to land close to your target size. This is usually the best way to hit a strict size limit with the bitrate from this calculator.
Container overhead
Containers such as MP4 or MKV add headers, indexes and packet framing, typically roughly 1–3% of the file. To stay under a hard size limit, aim a few percent below the target (for example, enter 97% of the size you want).
Codec efficiency
H.265/HEVC and AV1 generally reach similar visual quality to H.264 at noticeably lower bitrates. Commonly cited savings are on the order of tens of percent, and they vary with content and encoder settings. For tight size targets they can look better than H.264 at the same bitrate, but they encode more slowly and some devices or platforms do not support them. The bitrate table in this article refers to H.264, so adjust your expectations for other codecs.
FAQ
Does this use 1 MB = 1000 KB or 1024 KB? It uses 1 MB = 1024 KB (binary), so the 8192 factor. This matches how operating systems report file sizes.
Will my file be exactly this size? It's an average-bitrate target. Container overhead and variable-bitrate encoding cause small differences, so leave a little headroom.
What if audio is larger than the total? If the audio bitrate exceeds the total budget, the video bitrate is shown as 0 — you need a larger file size or shorter clip.