You are about to render a video and want to know, before you start, whether it will fit on a drive or under a size limit. If you know the bitrate and the running time, you do not need to wait for the file. You can calculate its size in a few short steps.
By the end of this guide you will be able to turn any video bitrate and duration into bytes, megabytes or gibibytes, include the audio track, and judge how far the result may drift from the real file.
The formula and what goes into it
The size of the encoded streams is the total bitrate multiplied by the time, divided by 8 to turn bits into bytes:
size in bytes = (video bitrate + audio bitrate) × seconds ÷ 8
MDN's audio guide uses the same idea: multiply the bit rate by the duration to get the data size. Three inputs matter. The video bitrate and the audio bitrate are in bits per second, with kbps meaning 1,000 bits per second and Mbps meaning 1,000,000. The duration must be in seconds. If you need background on the first two, see what is bitrate.
Both operations have a reason. A bitrate is bits per second, so multiplying by seconds cancels the "per second" and leaves bits. NIST lists one byte as 8 bits, so dividing by 8 converts bits to bytes. The same formula sizes an audio-only file. For uncompressed audio, how big is an audio file lists sizes by the minute and the hour.
Step by step: 5 Mbps for 10 minutes
| Step | What to do | Example: 10 minutes of video at 5 Mbps, no audio |
|---|---|---|
| 1 | Write the video bitrate in bit/s | 5 Mbps = 5,000,000 bit/s |
| 2 | Add the audio bitrate in bit/s, if there is audio | 0 for this example |
| 3 | Convert the duration to seconds | 10 × 60 = 600 s |
| 4 | Multiply the total bitrate by the seconds | 5,000,000 × 600 = 3,000,000,000 bits |
| 5 | Divide by 8 | 375,000,000 bytes |
| 6 | Convert to the unit you need | 375 MB, or 357.6 MiB |
The video file size calculator runs these steps from a bitrate and a duration, and it can also work backward from a target size. Units follow NIST: 1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes. Decimal vs. binary units explains why both appear in file listings.
A longer example with audio
Worked example. Example: a 2-hour film with video at 8 Mbps and audio at 192 kbps.
- Video: 8 Mbps = 8,000,000 bit/s. Audio: 192 kbps = 192,000 bit/s.
- Total bitrate: 8,000,000 + 192,000 = 8,192,000 bit/s.
- Duration: 2 × 3,600 = 7,200 seconds.
- Bits: 8,192,000 × 7,200 = 58,982,400,000 bits.
- Bytes: 58,982,400,000 ÷ 8 = 7,372,800,000 bytes.
- Units: 7.3728 GB in decimal, or about 6.87 GiB in binary.
Notice how little the audio adds. The 192 kbps track is 192,000 × 7,200 ÷ 8 = 172,800,000 bytes, about 2.3 percent of the total. Do not skip it anyway, because a long file with several audio tracks adds up.
Size at a glance, and the units you will meet
When you only need a rough scale, apply the formula once and read across. These rows are calculations from example video bitrates, with no audio.
| Example video bitrate | Bytes in 10 minutes | Megabytes |
|---|---|---|
| 1 Mbps | 75,000,000 | 75 |
| 3 Mbps | 225,000,000 | 225 |
| 5 Mbps | 375,000,000 | 375 |
| 8 Mbps | 600,000,000 | 600 |
The relationship is a straight line. Triple the bitrate and you triple the size. Double the duration and you double it again. MDN's video guide states the same relationship in words: higher bit rates inherently lead to larger output files.
Players and file listings do not always show bitrates in Mbps. The same bitrate can appear in four spellings, and the last column is the one that gets confused with a connection speed.
| Bitrate | bit/s | kbps | Mbps | MB/s |
|---|---|---|---|---|
| Audio track | 128,000 | 128 | 0.128 | 0.016 |
| Example video | 2,500,000 | 2,500 | 2.5 | 0.3125 |
| Example video | 5,000,000 | 5,000 | 5 | 0.625 |
| Example video | 8,000,000 | 8,000 | 8 | 1 |
Divide Mbps by 8 to get MB/s. Mbps vs. MB/s explains why the two get mixed up.
Why the answer is an estimate
The formula describes the encoded streams. A real file can differ for three reasons.
The bitrate may be an average. Many encoders let the rate rise and fall. The average times the duration gives a good estimate, while a peak figure gives an overestimate. Constant vs. variable bitrate shows the difference with numbers.
The container adds overhead. RFC 8216 defines a segment's bit rate as its size divided by its duration and notes that this includes container overhead. Metadata, indexes and track information all take space. Codec vs. container explains the two layers.
Other streams count too. A second audio track or a subtitle track is more data. Add the bitrate of each stream you plan to include. Example: 45 minutes (2,700 seconds) with video at 2.5 Mbps and two audio tracks at 96 kbps each has a total bitrate of 2,500,000 + 96,000 + 96,000 = 2,692,000 bit/s. That gives 2,692,000 × 2,700 ÷ 8 = 908,550,000 bytes.
The formula is the right tool for planning. For the final check, compare it with the real file. When the result must stay under a limit, leave some headroom instead of aiming at the limit exactly, and read how to choose a bitrate for a target file size for the reverse calculation.
Common mistakes
- Forgetting to divide by 8. Bitrates count bits, and file sizes count bytes. Without the division the answer comes out eight times too large.
- Using minutes. The formula needs seconds. Ten minutes is 600 seconds, and using 10 gives an answer 60 times too small.
- Mixing kbps and Mbps. 1 Mbps is 1,000 kbps, so 128 kbps is 0.128 Mbps. Convert both bitrates to bit/s before adding them.
- Leaving the audio out. The error is small for a single track, but it is not zero.
- Rounding the bitrate. Using 5 Mbps when the real figure is 4.8 Mbps overstates the size by about 4 percent. Example: 4,800,000 × 600 ÷ 8 is 360,000,000 bytes, not 375,000,000.
- Comparing MB with MiB. A size of 375,000,000 bytes is 375 MB and 357.6 MiB. Keep one unit family through the whole calculation.
FAQ
How big is one hour of video at 5 Mbps?
Example: 5,000,000 × 3,600 ÷ 8 = 2,250,000,000 bytes, which is 2.25 GB or about 2.10 GiB. Audio would add to this.
Does resolution change the file size?
Not directly. The formula uses bitrate and duration. A bigger picture changes the size only when the encoder is given a higher bitrate to describe it.
How do I find the bitrate of an existing video?
Some file-information screens list it. You can also reverse the formula: bitrate in bit/s = bytes × 8 ÷ seconds. A 375,000,000-byte file that runs 600 seconds works out to 5,000,000 bit/s.
Why is my real file bigger or smaller than the estimate?
The usual causes are a variable bitrate that averaged differently than expected, container overhead, and streams you did not count. To find which one applies, compute the real file's average bitrate from its size and duration, then compare it with the number you used in the estimate.
Sources
- MDN Web Docs, Digital audio concepts. Accessed November 6, 2026.
- MDN Web Docs, Web video codec guide. Accessed November 6, 2026.
- IETF, RFC 8216: HTTP Live Streaming. Accessed November 6, 2026.
- NIST, Definitions of the SI units: The binary prefixes. Accessed November 6, 2026.



