Skip to content
Start from the ceiling, not the settings

The size limit is the spec. Work backwards to the bitrate

A form that accepts 50 MB, a Discord upload of 10, a course platform with 200: you know the number you cannot cross. Enter it together with the running time and you get the one value the encoder actually needs.

Short answerLast edited October 31, 2026

The Video Bitrate Calculator finds the bitrate a video needs to hit a target file size, or the file size a bitrate produces for a given length. For a 10-minute video at 128 kbit/s of audio and 2,000 kbit/s of video, the file is about 160 MB.

What the usual ceilings buy you at 1080p

Every limit below is a file size, and a file size means nothing until you divide it by a running time. At the bitrate most people export 1080p with - around 5 Mbps of video plus 128 kbps of audio - a 10 MB upload is a fifteen-second clip, and a 512 MB upload is a thirteen-minute video. Same quality, different ceilings.

That is the whole trick of this calculator: the limit and the length are fixed, so the bitrate is the only thing left to choose. Once you know it, you know whether the export settings you are used to will fit or whether the video has to be shorter, smaller or compressed harder.

Time a 1080p export fits into, at about 5 Mbps of video and 128 kbps of audio
CeilingWhereTime at 1080p
10 MBDiscord, free tier16 seconds
25 MBmost email attachments40 seconds
50 MBDiscord Nitro, small forms1 min 20 s
100 MBupload forms, course platforms2 min 40 s
512 MBX (Twitter)13 minutes
2 GBWhatsApp, Telegram54 minutes

Three numbers and one subtraction

The arithmetic is short. A file size in megabytes becomes bits by multiplying by 8 and by 1,048,576 - the number of bytes in a megabyte. Divide that by the length in seconds and you have the total bitrate the file can average, in bits per second. Divide by a thousand once more and you are in the kbps that encoders ask for.

Then subtract the audio, because the sound is inside the same budget. A 3.4 Mbps total with 128 kbps of audio leaves 3.27 Mbps for the picture. Subtract a further two percent for the container, the index and the metadata, and what is left is the number to type into the video bitrate field.

The result is an average, not a ceiling. A variable bitrate encoder spends more on the fast scene and less on the talking head, which is exactly what you want; a constant bitrate encoder spends the same everywhere and looks worse in both. If your encoder offers "average bitrate" or "two-pass", that is the mode this number is meant for.

Before the export
  • Know the real limit, not the one you remember
  • Use the exact running time, including the fade out
  • Decide the audio bitrate first - it is part of the budget
  • Put the number in the video bitrate field, not the total
  • Check the finished file size before uploading
  • Keep the master: a re-export always loses a little

From a limit to a setting

1

Enter the ceiling and the length

The size the platform accepts and the real duration of the cut. Both are known before you open the encoder.

2

Pick the audio bitrate

128 kbps is fine for speech, 192 for music, 64 only for a voice note. It comes out of the same budget.

3

Read the video bitrate

That is the number for the encoder. The list underneath shows which resolutions it comfortably covers.

What changes the number without changing the size

H.265 (HEVC) reaches the same visible quality as H.264 at roughly half the bitrate, and AV1 goes further on static scenes. If the target platform accepts them, a 4 Mbps H.265 export can look like an 8 Mbps H.264 one - which doubles the length that fits in the same ceiling.

The catch is compatibility and encoding time. Older phones, some browsers and a few editors cannot open HEVC, and the export takes longer on the same machine. For a clip that will be watched inside one app, check that app's accepted codecs first; for anything that has to open anywhere, H.264 is still the safe answer.

Questions about the number

Why is the bitrate lower than what my encoder suggests?
Because your encoder suggests a quality target, while you gave the calculator a size target. A 1080p export at 5 Mbps looks good on most content; if the ceiling only allows 2.8 Mbps, something has to give - usually the resolution, the length or the codec. Exporting at 5 Mbps anyway produces a file the platform rejects.
The result is negative. What does that mean?
That the audio alone is bigger than the whole budget. At 256 kbps of audio a 40-second clip needs 1.3 MB before a single frame is encoded. Lower the audio to 128 or 96 kbps, shorten the clip, or accept a larger file - there is no bitrate for the video that fixes it.
Should I count the audio in the budget?
Yes. The platform limit is the size of one file, and that file contains a video stream and an audio stream. Leaving the audio out is the most common reason a re-export comes back a few percent over the limit.
How exact is the two percent container overhead?
Close enough for planning, not a guarantee. An MP4 with a fast-start index and little metadata stays under one percent; a file with chapters, subtitles and multiple audio tracks goes over. If the upload absolutely must not fail, target five to ten percent below the ceiling instead of two.
Does a higher bitrate always look better?
Up to a point. Past roughly 8 Mbps for 1080p30, most content stops improving visibly and the file just gets bigger. Grainy film, confetti, water and fast panning keep improving longer; a static interview does not need the budget at all. The resolution list here is a guide, not a rule.
Can I use this for audio-only files?
The same arithmetic works: set the audio bitrate to the file's bitrate and read the total. For a podcast the sensible range is 64 kbps mono for speech, 96 to 128 kbps stereo for music, and there is no reason to go above 192 for spoken content.

One number, typed once

Enter the ceiling and the length, read the bitrate, export. No trial and error uploads.

Calculate my bitrate

Quick facts

  1. File size in megabytes is (video bitrate + audio bitrate) in kbit/s, multiplied by the seconds, divided by eight and by 1024.
  2. Audio takes its share of the budget: a 128 kbit/s track in a 10-minute video occupies about 9.4 MB of the total.
  3. H.264 is the codec that made HD video practical on the web: it is decoded by every current browser and phone without a plugin.ITU-T
  4. Lowering the bitrate of H.264 throws away detail in fast movement first, which is why sport and confetti are the hardest scenes to compress.ITU-T
  5. A 128 kbit/s stereo MP3 uses about 0.9 MB of storage per minute — 128,000 bits each second, divided by eight.Fraunhofer IIS

Questions people ask

How do I calculate the bitrate for a target file size?
Convert the target size to kilobits, divide by the length in seconds, and subtract the audio bitrate. A 100 MB file of 60 seconds needs about 13,300 kbit/s in total (100 × 8,000 kbit ÷ 60 s). Subtract 128 kbit/s of audio and the video gets about 13,170 kbit/s.
What is a good bitrate for YouTube?
YouTube publishes recommended upload bitrates by resolution and frame rate, from about 8 Mbit/s for 1080p at standard frame rate upward. Their help page lists the figures, and the calculator can check what a chosen bitrate produces for your length.
Does a higher bitrate always mean better quality?
Not beyond a point. Once the encoder keeps the detail, more bitrate adds file size without a visible gain. Fast motion and grain need more bits than a static talking-head scene, which is why one fixed number is rarely right for every video.

What this page is about

  • H.264 / AVC

    The video codec standardised by ITU-T as H.264 and by ISO/IEC as MPEG-4 AVC, decodeable by every current browser.

  • A lossy audio format from MPEG-1 Audio Layer III, developed at Fraunhofer IIS, that removes sounds the ear is unlikely to notice.

How would you rate Video Bitrate Calculator?Be the first to rate it