Calculate video file size before you export, so you never discover too late that a video is too large for an upload limit, an email attachment or a phone’s storage. The formula is simple, and it uses only three inputs: duration, video bitrate and audio bitrate. Once you know it, you can plan a recording, choose export settings and check whether a file will fit, all without exporting first and hoping. The result is an estimate, not a guarantee, because real encoders vary their bitrate with scene complexity, but for planning purposes it is usually within 5 to 15 percent of the real file.
The formula, in plain terms
Total bitrate is video bitrate plus audio bitrate, in kilobits per second. Multiply by 1,000 to get bits per second, multiply by the duration in seconds to get total bits, divide by 8 to get bytes, and then divide by 1,000,000 for megabytes (MB) or by 1,048,576 for mebibytes (MiB). In one line: size = ((video kbps + audio kbps) x 1000 / 8 x seconds x (1 + overhead)) / bytes per unit, where overhead is the small container overhead, typically 0.5 to 2 percent for MP4 or WebM. If you want a quick estimate, use 0 percent overhead; if you want a more realistic one, use 1 percent. The tool at https://videosavetools.com/video-file-size-calculator/ does this arithmetic for you and shows both MB and MiB, but knowing the formula means you can check its answer, and you can do the maths anywhere.
How to calculate video file size, step by step
- Open the Video File Size Calculator at https://videosavetools.com/video-file-size-calculator/.
- Enter the duration in hours, minutes and seconds, the video bitrate in kbps, and the audio bitrate in kbps (use 0 if there is no audio).
- Choose MB or MiB, and an overhead percentage if you want one.
- Read the estimate, the raw byte count and the formula with your numbers plugged in, so you can verify the result rather than trusting a black box.
Worked example: 60 seconds at 6,000 kbps
Take a 60-second video at 6,000 kbps video bitrate and 128 kbps audio bitrate, stored as MP4 with 1 percent container overhead. Total bitrate: 6,000 + 128 = 6,128 kbps. In bits per second: 6,128,000. Total bits: 6,128,000 x 60 = 367,680,000. Total bytes: 367,680,000 / 8 = 45,960,000. Apply 1 percent overhead: 45,960,000 x 1.01 = 46,419,600 bytes. In MB: 46,419,600 / 1,000,000 = 46.42 MB. In MiB: 46,419,600 / 1,048,576 = 44.27 MiB. The same file shows as 46.42 MB in one context and 44.27 MiB in another, and both are correct: they use different units. A second example, with no overhead and no audio: 60 seconds at 8,000 kbps gives 8,000,000 x 60 / 8 = 60,000,000 bytes, exactly 60 MB.
Why MB and MiB differ, and why it matters
MB is decimal: 1 MB = 1,000,000 bytes, the unit consumer storage and most web tools report. MiB is binary: 1 MiB = 1,048,576 bytes, the unit many operating systems, video editors and FFmpeg report. The difference is about 4.86 percent, so a file that reports as 100 MB in a web tool may show as 95.4 MiB in your operating system. Neither number is wrong; they measure the same bytes with different rulers. This matters when you are close to a limit: a file that fits under a 100 MB upload limit in MB terms may appear to exceed it in MiB terms in your file manager, or the other way round, depending on which unit each side uses. When a limit matters, check which unit the limit is stated in, and calculate in that unit.
Common mistakes when you calculate video file size
The most common mistakes are: confusing bits and bytes, which gives an error of 8 times; forgetting the audio bitrate, which is small but not zero; assuming constant bitrate when most encoders use variable bitrate, so a simple scene uses less and a complex action scene uses more; and treating the estimate as exact, when encoder choice matters too — the same visual quality might need 3 Mbps in a modern codec or 5 Mbps in an older one. As rough guidance, 4,000 to 8,000 kbps suits H.264 1080p at 30 frames per second, and 6,000 to 12,000 at 60 frames per second, but if you know your video’s actual bitrate, use that instead of a preset.
Frequently asked questions
Why is the actual file size different from the estimate? Because most encoders use variable bitrate, and container metadata, keyframe spacing and encoder overhead all vary. What is the difference between MB and MiB? MB is 1,000,000 bytes, MiB is 1,048,576 bytes, a difference of about 4.86 percent. Should I include audio? Yes, unless there is no audio, in which case use 0. Do I need container overhead? Use 0 percent for a quick estimate, 1 percent for a realistic one. Can this tool make my video smaller? No, it only calculates: to actually reduce a file, use a dedicated video compressor.
How this guide was checked
VideoSaveTools is an independent site and is not affiliated with, endorsed by or sponsored by Google or Meta. The formula, the worked examples, the MB versus MiB explanation and the estimate framing are stated on the Video File Size Calculator tool page.