# Video file size calculator > How big will your video file be? Work out the file size from the bitrate and length, or the bitrate that fits a size. Calculate a video's file size from its bitrate, audio and duration, or find the bitrate that makes it fit a size limit such as an upload cap. - Page: https://how.box/video-size/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/video-size/?f={f}&b={b}&s={s}&t={t}&a={a} - `f` (size_gb or bitrate_mbps): What to find: size_gb (default) or bitrate_mbps. Example: `size_gb`. - `b` (number 0 to 100000): Video bitrate in Mbit/s (mode size_gb). Example: `8`. - `s` (number 0 to 1e6): File size in gigabytes (mode bitrate_mbps). Example: `4`. - `t` (number 0 to 1e6): Duration in minutes. Example: `120`. - `a` (number 0 to 10000): Audio bitrate in kbit/s. Example: `128`. Example answer: https://how.box/video-size/?f=size_gb&b=8&s=4&t=120&a=128 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `video_size_calculate`: Video file size from the bitrate, or the video bitrate that fits a file size: size in bytes = (video bit/s + audio bit/s) × seconds ÷ 8, with decimal prefixes (1 Mbit/s = 10⁶ bit/s, 1 GB = 10⁹ bytes) and no container overhead. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"video_size_calculate","arguments":{"find":"size_gb","bitrate_mbps":8,"size_gb":4,"duration_minutes":120,"audio_kbps":128}}}` - GET: https://how.box/mcp/run/video_size_calculate?find=size_gb&bitrate_mbps=8&size_gb=4&duration_minutes=120&audio_kbps=128 ## How it works A video file holds a steady stream of data, so its size is simply how fast the data flows times how long it runs. A higher bitrate means more detail and a bigger file; the same video at half the bitrate is half the size. File size in bytes = (video bitrate + audio bitrate) × seconds ÷ 8, because a byte is 8 bits. With decimal prefixes (1 Mbit/s = 1,000,000 bit/s, 1 GB = 1,000,000,000 bytes), a two-hour film at 8 Mbit/s plus 128 kbit/s audio is (8,000,000 + 128,000) × 7,200 ÷ 8 = 7.3 GB. YouTube's upload guidance recommends about 8 Mbit/s for 1080p video. Real files differ a little: the container adds a few percent of overhead, and variable-bitrate encoders only average the bitrate you set. Treat the result as a close estimate. ## FAQ **Will changing the codec change the size at the same bitrate?** The estimated size stays the same if duration and total bitrate stay the same. Codecs can produce different picture quality from the same amount of data. **Can I calculate a silent video?** Yes. Set the audio bitrate to zero. The estimate then includes only the video stream. **What bitrate fits an upload limit?** Switch to finding the bitrate, enter the size limit and the length. Leave a little margin below the limit. **Is a gigabyte 1,000 or 1,024 megabytes?** Here it is 1,000 megabytes, as storage makers and the IEC define it. A gibibyte (GiB) is the 1,024-based unit. **Should I enter video bitrate or total bitrate?** Enter the video stream’s bitrate in the main field and audio separately. If you only know the combined bitrate, use that as the main value and set audio to zero to avoid counting it twice. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)