Video File Size Calculator
Estimate video file size from bitrate and duration, estimate the target video bitrate for a file-size limit, or determine maximum recording time for available storage. Use bitrate-based estimates without relying on a specific codec preset.
How video file size calculation works
Digital video files consist of multiplexed data streams, principally comprising an encoded video track, one or more audio tracks, and container metadata. The fundamental mathematical relationship governing stream storage volume is:
Because operating systems, memory cards, and hard drives report file sizes in bytes rather than bits, the total bit count is divided by exactly 8:
This calculator performs bitrate- and duration-based data volume estimation. It does not calculate uncompressed raw video frames from pixel dimensions, bit depth, or chroma subsampling.
For example, a video stream encoded at 20 Mbps accompanied by a 320 kbps stereo audio track has a combined data rate of 20.32 Mbps (20,320,000 bits per second). Over a 1-hour duration (3,600 seconds), this yields 73,152,000,000 bits, which equals 9,144,000,000 bytes (approximately 9.144 decimal GB or 8.52 binary GiB).
How Bitrate Changes File Size
The reference table below illustrates theoretical mathematical data volume for 1 hour of recording across arbitrary video and audio bitrate combinations. These figures are pure mathematical products of data rate and time (bitrate × duration ÷ 8), not recommended, typical, or standard presets for any specific resolution or codec. Bitrates vary widely based on codec efficiency, frame rate, motion complexity, bit depth, and encoder settings.
| Bitrate combination example | Storage rate | 1-hour data volume (Decimal GB) |
|---|---|---|
| 5 Mbps Video + 128 kbps Audio | 38.5 MB/min | 2.308 GB |
| 10 Mbps Video + 192 kbps Audio | 76.4 MB/min | 4.586 GB |
| 20 Mbps Video + 320 kbps Audio | 152.4 MB/min | 9.144 GB |
| 50 Mbps Video + 320 kbps Audio | 377.4 MB/min | 22.644 GB |
| 100 Mbps Video + 320 kbps Audio | 752.4 MB/min | 45.144 GB |
Worked Examples: Step-by-Step Calculations
The following worked examples demonstrate step-by-step arithmetic across each calculation mode using neutral mathematical scenarios.
1. Combined bitrate: 45,000,000 bps + 384,000 bps = 45,384,000 bps (45.384 Mbps).
2. Total bits: 45,384,000 bps × 900 seconds = 40,845,600,000 bits.
3. Total bytes: 40,845,600,000 bits ÷ 8 = 5,105,700,000 bytes.
4. Result: 5.106 GB (decimal SI, 1 GB = 10^9 bytes) or 4.755 GiB (binary IEC, 1 GiB = 2^30 bytes).
1. Target total bytes: 100 × 1,000,000 = 100,000,000 bytes (800,000,000 bits).
2. Total allowable data rate: 800,000,000 bits ÷ 180 seconds ≈ 4,444,444.44 bps (≈ 4.444 Mbps).
3. Deduct audio bitrate: 4,444,444.44 bps − 160,000 bps = 4,284,444.44 bps.
4. Target video bitrate: 4.284 Mbps. If audio were not deducted, total file size would exceed the 100 MB limit by 3.6 MB.
1. Available bits: 128,000,000,000 bytes × 8 = 1,024,000,000,000 bits.
2. Total bitrate: 100,000,000 bps + 256,000 bps = 100,256,000 bps.
3. Maximum duration: 1,024,000,000,000 ÷ 100,256,000 ≈ 10,213.8525 seconds.
4. Converted time: 10,214 seconds rounds to 2 hours 50 minutes 14 seconds (2h 50m 14s).
What changes video file size
While mathematical estimates provide an authoritative baseline, actual encoded media file sizes can vary based on several technical factors:
- Variable Bitrate (VBR) vs. Constant Bitrate (CBR): Under CBR encoding, data is written at a steady rate throughout the file. Under VBR encoding, the encoder allocates higher bitrates to complex scenes with rapid motion and reduces bitrates during static scenes, resulting in an average bitrate that may differ from your peak target.
- Container and multiplexing overhead: Container overhead, metadata, additional tracks, muxing behavior, and encoder output can cause the final file size to differ from a bitrate × duration estimate. Container formats (such as MP4, MKV, MOV, or WebM) require structural headers, indexing tables, and packet encapsulation that introduce non-zero overhead depending on duration, stream count, and muxer implementation.
- Multiple audio and subtitle tracks: Adding secondary language tracks, surround sound (5.1 or 7.1 channel audio), or embedded closed-caption streams increases the total composite stream bitrate.
- Content complexity and encoder efficiency: Modern compression codecs achieve equivalent visual fidelity at lower bitrates compared to older codecs, directly reducing the required stream data rate for a given perceptual quality.
Video bitrate vs. audio bitrate in target budgeting
When aiming for a specific file-size limit—such as meeting email attachment thresholds, cloud upload quotas, or storage media limits—both video and audio tracks share the same total allowable bitrate pool.
If your target file size permits a total data rate of 5,000 kbps (5 Mbps) over your video duration, allocating 320 kbps to high-fidelity audio leaves 4,680 kbps for the video track. If audio bitrate is omitted from your calculation, the resulting video file will consistently exceed your target size by the cumulative volume of the audio stream.
How to estimate storage for field recording
When preparing storage cards or external SSDs for camera recording, consider these practical practices:
- Check manufacturer storage definitions: Memory cards are sold using decimal gigabytes (1 GB = 1,000,000,000 bytes). If an operating system formats and reports storage in binary gibibytes (1 GiB = 1,073,741,824 bytes), a “128 GB” card will display approximately 119.2 GiB of usable capacity before recording begins.
- Reserve safety margins: Operating systems require filesystem tables (such as exFAT file allocation tables) and may prevent recording when media reaches high capacity. Plan recording duration with an appropriate safety buffer.
Common calculation mistakes to avoid
- Confusing Mbps with MB/s: Megabits per second (Mbps) measures transmission rate, while megabytes per second (MB/s) measures storage rate. Because 1 byte contains 8 bits, recording at 80 Mbps writes 10 MB/s to your drive, not 80 MB/s.
- Overlooking audio bitrate: Calculating target video bitrate without deducting the audio stream causes encoded videos to exceed target file limits.
- Mixing decimal GB with binary GiB: A 10 GB file equals 10,000,000,000 bytes, whereas 10 GiB equals 10,737,418,240 bytes. Ensure your unit selection matches your distribution destination.
Frequently asked questions
Common Video File Size Scenarios
Review detailed bitrate, resolution, and storage budget tables by video runtime and reference profile: