video.cihat.dev

Video file size and bitrate calculator

How big will a video be at a given bitrate, and what bitrate makes it fit under a size limit? Enter the length and the rates; the formula is shown with your numbers.

Calculate

Seconds, or minutes:seconds

How to use it

  1. Choose Size from bitrate or Bitrate for a size.
  2. Enter the length as seconds or minutes and seconds, like 2:30.
  3. Enter the video bitrate in megabits per second, or the size you need to stay under, and the audio bitrate in kilobits per second.
  4. Read the result and use the bitrate in your editor’s or encoder’s export settings.

The formula

File size in megabytes = (video bitrate in Mbps + audio bitrate in kbps ÷ 1000) × seconds ÷ 8. The division by 8 turns megabits into megabytes; bitrates are given in bits, file sizes in bytes.

Going the other way, the video bitrate that fits a size is the size × 8 ÷ seconds, minus the audio. The calculator keeps 2% of the size free for the container’s index and headers, so the export lands under the limit rather than just over it. Sizes here are decimal, as file managers on Mac and phones show them: 1 MB is 1,000,000 bytes.

Video only, before audio
Video bitrate1 minute10 minutes1 hour
2 Mbps15 MB150 MB900 MB
5 Mbps37.5 MB375 MB2.25 GB
8 Mbps60 MB600 MB3.6 GB
16 Mbps120 MB1.2 GB7.2 GB
50 Mbps375 MB3.75 GB22.5 GB

Average bitrate versus the real file

Encoders set to a target bitrate land close to it over the whole video, but scenes with a lot of motion take more and still scenes take less. With constant-quality settings, such as CRF in many editors or the camera’s own recording, the size cannot be known in advance; use the checker to read the bitrate of a finished file.

Questions people ask

How do I calculate video file size?

Multiply the total bitrate in megabits per second by the length in seconds and divide by 8. A 3-minute video at 8 Mbps with 128 kbps audio is (8 + 0.128) × 180 ÷ 8 = 182.9 MB.

What bitrate fits a video under 25 MB?

Divide 25 × 8 by the length in seconds and subtract the audio. For 60 seconds with 128 kbps audio that is about 3.14 Mbps after leaving 2% for the container.

Why is my exported file a bit bigger than calculated?

The container adds an index, and encoders overshoot slightly on busy scenes. Aim for a little under the limit, which this calculator already does.

Is 1 MB 1000 or 1024 kilobytes here?

1000. Most upload limits and the Finder, Files and Photos apps count in decimal units. Windows Explorer shows 1024-based sizes, which look about 5% smaller.

What is the difference between Mbps and MB/s?

Mbps is megabits per second, MB/s is megabytes per second. One megabyte is eight megabits.