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.

Estimate Formula shown Your data stays in your browser

Your data

1. Task

Choose what to calculate.

File size from bitrate, or bitrate from size.
2. Duration

Hours, minutes and seconds of the video.

3. Bitrate and size

The bitrate comes from the encoding settings or the file properties. Container overhead is roughly 1%.

The average bitrate of the video track from the encoding settings.
I don’t know this value

How to get this number

The bitrate of a finished file is shown in the video’s properties or in the MediaInfo program. For a file you have yet to make, use the figure from the export or encoder settings.

What you can calculate without it: Desired size in decimal gigabytes, Duration

Zero if there is no sound.
In the units chosen below.
GB and MB are decimal (the way drive manufacturers count), GiB and MiB are binary (the way operating systems show them).
Service data of the file format; about 1% for most containers.

How we calculate

  1. duration in seconds = hours × 3,600 + minutes × 60 + seconds
  2. total bitrate = video bitrate × 1,000,000 + audio bitrate × 1,000 (bit/s)
  3. size in bytes = total bitrate × duration ÷ 8 × (1 + overhead)
  4. in reverse: total bitrate = size in bytes × 8 ÷ duration ÷ (1 + overhead); video bitrate = total − audio
  5. 1 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.

Formula version video-file-size@1.1.0 · checked 25 September 2026

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