Digital and AI · Calculator
Video file size calculator
Enter the duration and bitrate to see the file size in gigabytes and gibibytes, or set a size and the calculator tells you which video bitrate fits into it.
Your data
How we calculate
duration in seconds = hours × 3,600 + minutes × 60 + secondstotal bitrate = video bitrate × 1,000,000 + audio bitrate × 1,000 (bit/s)size in bytes = total bitrate × duration ÷ 8 × (1 + overhead)in reverse: total bitrate = size in bytes × 8 ÷ duration ÷ (1 + overhead); video bitrate = total − audio1 GB = 10⁹ bytes, 1 GiB = 2³⁰ bytes, 1 MB = 10⁶ bytes, 1 MiB = 2²⁰ bytes
Assumptions
- The bitrate is assumed constant throughout the video; with a variable bitrate it is the average.
- Container overhead is the approximate share of the file taken up by the file format’s service data. change
Limitations
- Resolution, frame rate and codec do not affect the size directly: they only determine which bitrate is needed for the desired quality.
- Multiple audio tracks, subtitles, chapters and the exact overhead of a particular container are not modelled.
Sources
A universal formula with no external constants. Default values are labelled as approximate examples, not verified facts.
Questions and answers
Why are GB and GiB different?
A gigabyte is 10⁹ bytes: that is how drive manufacturers and cloud plans count. A gibibyte is 2³⁰ bytes: that is how the operating system shows the size. The same file looks about 7% smaller in GiB.
Why is there no “4K” or “1080p” field?
Because resolution does not determine the file size: two 4K videos with different bitrates will have different sizes. Resolution and codec only suggest which bitrate is needed for the desired quality.
Related tools
This is an engineering estimate, not a guarantee: the real result depends on conditions the calculator cannot see. Check the assumptions and limitations.
Checked by the Calc editorial team: three independent implementations of the formula, test cases and the live page on a phone. Last check: 27 September 2026