Video file size explained
How video file size is calculated.
Video file size is driven mainly by how much data is stored per second and how long the video lasts. Resolution matters because it changes how much bitrate is needed for acceptable quality, not because pixels have a fixed file size.
Last reviewed: 2026-07-31
Direct answer
The short version
Estimated file size in megabytes equals total bitrate in kilobits per second multiplied by duration in seconds, divided by 8,192. Total bitrate includes both video and audio.
Bitrate × duration determines the estimate
A 2,000 kbps video with 128 kbps audio has a total bitrate of 2,128 kbps. Over 60 seconds, that produces an estimated 15.6MB file before small container differences.
Doubling duration approximately doubles file size when bitrate stays the same. Doubling bitrate also approximately doubles file size when duration stays the same.
Resolution changes the bitrate you need
A 4K frame contains far more pixels than a 720p frame. The formula does not include resolution directly, but a higher resolution generally needs a higher bitrate to avoid visible artifacts.
If two videos use the same duration and bitrate, their estimated file sizes are similar even if their resolutions differ. The higher-resolution version may simply look worse because the same data must describe more pixels.
Motion and visual complexity matter
A static presentation slide compresses more easily than fast gameplay, falling confetti, water, film grain, or a handheld camera moving through detailed scenery.
Variable bitrate encoders spend more data on complex moments and less on simple scenes, which can improve quality but makes exact output size less predictable.
Codec efficiency changes quality at the same size
Modern codecs can often preserve more detail at a given bitrate, but playback support and browser encoding availability differ. H.264 remains a practical choice for broad compatibility.
Container overhead, metadata, subtitles, and multiple audio tracks add additional data, although video and audio streams usually dominate the total size.
FAQ
Frequently asked questions
Does 1080p always create a larger file than 720p?
Not automatically. File size depends primarily on bitrate and duration, but 1080p usually needs more bitrate than 720p to maintain similar visual quality.
Why are two videos with the same duration different sizes?
They may use different bitrates, codecs, audio settings, frame rates, resolutions, or variable bitrate decisions based on scene complexity.
Does frame rate affect file size?
At a fixed bitrate, file size stays similar, but higher frame rates give the encoder more frames to describe and may require more bitrate for equal quality.
How accurate is the bitrate formula?
It is a useful estimate. Real output can differ because of container overhead, variable bitrate behavior, metadata, and encoder implementation.
Next step