Video Bitrate Calculator

Calculate the video bitrate needed to reach a target file size. Enter the file size, duration, and audio bitrate to find the available video bitrate.

Calculate Video Bitrate

Calculate the video bitrate needed to reach a target file size for a specific duration.

Video duration

The audio bitrate is reserved first. The remaining bitrate is available for video.


What Is a Video Bitrate Calculator?

A video bitrate calculator determines the bitrate available for video when you already know the target file size, video duration, and audio bitrate.

This is useful when a video must stay below a specific upload, storage, or delivery limit.

Common examples include:

  • Exporting a video below a platform’s file size limit
  • Fitting a recording onto available storage
  • Delivering a client file under a specified size
  • Planning a long-form YouTube upload
  • Compressing a video for email or cloud transfer
  • Creating an archive with predictable storage requirements
  • Preparing media for a content management system
  • Estimating encoding settings before export

The calculator reserves space for the audio stream and shows how much of the total bitrate remains available for video.

All calculations run locally in your browser. No video file is selected, inspected, or uploaded.


How to Use the Video Bitrate Calculator

Enter the target file size

Enter the maximum or preferred size for the finished video.

The calculator supports:

  • MB
  • GB
  • MiB
  • GiB

Use the same unit as the storage limit or delivery requirement you are working with.

For example, enter 4 GB if you want the completed file to be approximately four decimal gigabytes.

Enter the video duration

Enter the complete duration using the hours, minutes, and seconds fields.

For a 90-minute video, enter:

Hours: 1
Minutes: 30
Seconds: 0

For a 45-second video, enter:

Hours: 0
Minutes: 0
Seconds: 45

Enter the audio bitrate

Enter the audio bitrate in kilobits per second.

Common audio settings may include:

  • 96 kbps
  • 128 kbps
  • 192 kbps
  • 256 kbps
  • 320 kbps

Enter 0 if the file will not contain an audio track.

If the video contains multiple audio tracks, add their bitrates together before entering the value.

Calculate the available video bitrate

Select Calculate bitrate to display:

  • Available video bitrate in Mbps
  • Total bitrate in Mbps
  • Video bitrate in kbps
  • Storage used per minute

Use Copy result to copy a summary or Reset to restore the default values.


Video Bitrate Calculation Formula

The calculator first converts the target file size into bytes.

For decimal gigabytes:

File size in bytes
= File size in GB × 1,000,000,000

The duration is converted into seconds:

Duration in seconds
= Hours × 3,600 + Minutes × 60 + Seconds

Because there are eight bits in one byte, the available total bitrate is calculated as:

Total bitrate in bits per second
= File size in bytes × 8 ÷ Duration in seconds

To convert bits per second into megabits per second:

Total bitrate in Mbps
= File size in bytes × 8 ÷ Duration in seconds ÷ 1,000,000

The audio bitrate is converted from kbps to Mbps:

Audio bitrate in Mbps
= Audio bitrate in kbps ÷ 1,000

Finally, the audio bitrate is subtracted from the total bitrate:

Available video bitrate
= Total bitrate − Audio bitrate

This remaining value is the theoretical bitrate available to the video stream.


Example: 4 GB File for a One-Hour Video

Consider the following target:

Target file size: 4 GB
Duration: 1 hour
Audio bitrate: 192 kbps

Convert four decimal gigabytes into bytes:

4 × 1,000,000,000
= 4,000,000,000 bytes

Convert one hour into seconds:

1 hour = 3,600 seconds

Convert bytes into bits:

4,000,000,000 × 8
= 32,000,000,000 bits

Calculate the total bitrate:

32,000,000,000 ÷ 3,600
= 8,888,888.89 bits per second

Convert the result into Mbps:

8,888,888.89 ÷ 1,000,000
= 8.8889 Mbps

Convert the audio bitrate:

192 kbps ÷ 1,000
= 0.192 Mbps

Subtract the audio bitrate from the total:

8.8889 − 0.192
= 8.6969 Mbps

The available video bitrate is approximately:

8.697 Mbps

The equivalent value in kilobits per second is approximately:

8,697 kbps

Total Bitrate vs. Video Bitrate

The total bitrate represents all media data included in the calculation.

For a basic file containing one video stream and one audio stream:

Total bitrate
= Video bitrate + Audio bitrate

The video bitrate result is lower than the total bitrate because part of the available data must be reserved for audio.

For example:

Total bitrate: 8.889 Mbps
Audio bitrate: 0.192 Mbps
Video bitrate: 8.697 Mbps

A completed media file may also contain:

  • Additional audio tracks
  • Subtitles
  • Chapters
  • Timecode
  • Metadata
  • Thumbnails
  • Container indexes
  • Other structural data

These elements can make the final file slightly larger than the simplified video-plus-audio calculation.


Why You Should Leave a Safety Margin

The calculated video bitrate is a theoretical maximum based on the values entered.

Using the exact maximum in an export application does not guarantee that the completed file will remain below the target size.

The final size can be affected by:

  • Container overhead
  • Encoder behavior
  • Variable bitrate peaks
  • Metadata
  • Subtitle tracks
  • Multiple audio streams
  • Chapters and indexes
  • Differences between target and achieved bitrate
  • Rounding in export applications

If a platform enforces a strict maximum file size, select an encoding bitrate slightly below the calculated result.

There is no universal safety margin that works for every codec, container, encoder, and video duration. A short test export is the safest approach when the limit must not be exceeded.


Constant Bitrate and Variable Bitrate

Constant bitrate

Constant bitrate, or CBR, attempts to maintain a relatively stable data rate throughout the file.

CBR can make file size more predictable because the encoder stays close to the selected bitrate. It is often useful when stable bandwidth or predictable storage is important.

However, a CBR encoder may still produce small differences between the configured bitrate and the final average bitrate.

Variable bitrate

Variable bitrate, or VBR, changes the amount of data used according to the complexity of each section.

Scenes with limited motion and simple backgrounds may use less data. Scenes with fast movement, camera noise, water, smoke, confetti, detailed textures, or rapid cuts may use more.

Export applications often provide two VBR settings:

  • Target bitrate
  • Maximum bitrate

For file size planning, the target bitrate is generally the more relevant value because it represents the intended average data rate.

The maximum bitrate describes how high the rate is allowed to rise during more complex sections. It should not be treated as the average bitrate for the whole video.


One-Pass vs. Two-Pass Encoding

One-pass encoding

A one-pass encoder analyzes and encodes the video during a single process.

It is usually faster because the source does not need to be analyzed in a separate pass. However, the encoder has less information about later sections when deciding how to distribute the available bitrate.

Two-pass encoding

Two-pass encoding analyzes the source before completing the final encode.

During the analysis pass, the encoder examines complexity throughout the video. During the second pass, it can distribute the available bitrate more strategically.

Two-pass encoding can be useful when:

  • The target file size is important
  • The bitrate is limited
  • The video contains both simple and complex scenes
  • Encoding time is less important than efficient compression

Two-pass encoding does not change the basic file size formula. It changes how the available bitrate is distributed across the video.


How File Size Units Affect the Result

The selected file size unit affects the number of bytes used in the calculation.

Decimal units

Decimal units use powers of 1,000.

1 MB = 1,000,000 bytes
1 GB = 1,000,000,000 bytes

Binary units

Binary units use powers of 1,024.

1 MiB = 1,048,576 bytes
1 GiB = 1,073,741,824 bytes

One GiB contains more bytes than one GB. Therefore, entering 4 GiB produces a higher available bitrate than entering 4 GB for the same duration.

Use GB or MB when working with decimal file size limits. Use GiB or MiB when the requirement is explicitly stated in binary units.

Do not assume that every application uses unit labels consistently. Some operating systems and applications display a binary measurement using a familiar decimal label.


Does Resolution Determine the Required Bitrate?

Resolution does not appear directly in the bitrate formula, but it affects the quality that can be achieved at a given bitrate.

A 3840 × 2160 frame contains four times as many pixels as a 1920 × 1080 frame. If both videos use the same codec, duration, frame rate, and bitrate, the 4K version has fewer bits available per pixel.

This does not mean that every 4K export must use exactly four times the bitrate. Compression efficiency depends on many factors, including:

  • Codec
  • Encoder
  • Frame rate
  • Source complexity
  • Noise
  • Motion
  • Color depth
  • Chroma sampling
  • Encoder preset
  • Desired quality

The calculator determines the bitrate that fits the target capacity. It does not decide whether that bitrate is sufficient for the chosen resolution and quality level.


How Frame Rate Affects Bitrate Decisions

A higher frame rate means more frames must be represented during each second of video.

For example, a 60 fps video contains twice as many frames per second as a 30 fps video.

If both files use the same average bitrate, the 60 fps version does not automatically become larger. The bitrate already controls the amount of data used per second.

However, maintaining similar visual quality at 60 fps may require a higher bitrate, especially for fast-moving content.

This is why platform recommendations often provide different bitrate ranges for standard and high frame rates.


How the Codec Affects Quality

The codec determines how efficiently video data is compressed.

Common video codecs include:

  • H.264
  • HEVC or H.265
  • AV1
  • VP9
  • ProRes
  • DNxHR

At the same bitrate, different codecs and encoders can produce different visual results.

A newer or more efficient codec may provide similar quality at a lower bitrate, but that does not guarantee that it is the best option for every workflow.

Codec selection also depends on:

  • Device compatibility
  • Browser support
  • Editing performance
  • Encoding time
  • Hardware acceleration
  • Platform requirements
  • Licensing
  • Playback requirements

If two files have the same duration and average total bitrate, their estimated sizes will be similar even if they use different codecs. The main difference is the quality and compatibility provided at that bitrate.


Bitrate for YouTube Uploads

YouTube publishes recommended upload encoding settings for different resolutions and frame rates.

These recommendations are intended to help creators prepare high-quality source files for upload. They should not be interpreted as strict values required for every project.

YouTube re-encodes uploaded videos for playback. The bitrate of the version viewed by an audience is therefore not necessarily the same as the bitrate of the uploaded source file.

When preparing a YouTube upload:

  1. Check the current official encoding recommendations.
  2. Select the resolution and frame rate.
  3. Identify the recommended bitrate range.
  4. Use the Video File Size Calculator to estimate the resulting storage.
  5. Use this Video Bitrate Calculator if you must fit the upload into a specific capacity.

Platform recommendations can change, so verify the latest official specifications before creating permanent export presets.


Planning Bitrate for Client Delivery

A client may request both a duration and a maximum delivery size.

For example:

Maximum file size: 2 GB
Duration: 30 minutes
Audio bitrate: 192 kbps

The total available bitrate is approximately:

2,000,000,000 × 8 ÷ 1,800 ÷ 1,000,000
= 8.8889 Mbps

After reserving audio:

8.8889 − 0.192
= 8.6969 Mbps

The result is the same video bitrate as a four-gigabyte, one-hour file because both file size and duration were reduced by half.

The ratio between capacity and duration determines the available total bitrate.


Planning Bitrate for Long Videos

Long videos require lower bitrates when the target file size remains fixed.

Consider a target size of 4 GB with 192 kbps audio:

Duration Approximate available video bitrate
30 minutes 17.586 Mbps
1 hour 8.697 Mbps
2 hours 4.252 Mbps
3 hours 2.771 Mbps
4 hours 2.030 Mbps

Doubling the duration while keeping the same target size approximately halves the available total bitrate.

If the result becomes too low for acceptable quality, the practical options are to:

  • Increase the target file size
  • Use a more efficient codec
  • Reduce the resolution
  • Reduce the frame rate
  • Reduce the audio bitrate
  • Split the video into separate files
  • Accept a greater level of compression

Choosing an Audio Bitrate

The audio bitrate reduces the capacity available to the video stream.

For a high-bitrate video, the difference may be relatively small. For a low-bitrate export, audio can represent a more significant percentage of the total.

For example, if the total available bitrate is 1 Mbps:

1 Mbps = 1,000 kbps

A 192 kbps audio track uses 19.2% of that total bitrate, leaving approximately 808 kbps for video before accounting for overhead.

Audio settings should reflect the content and delivery format. Spoken-word content may not require the same audio bitrate as a complex music recording.

When several audio tracks are included, add their bitrates together.

Example:

English audio: 192 kbps
Spanish audio: 192 kbps
Combined audio bitrate: 384 kbps

Enter 384 in the calculator.


How to Verify the Final Bitrate

After exporting, inspect the completed file with a media-information application.

Tools such as FFprobe or MediaInfo can report:

  • Duration
  • Overall bitrate
  • Video bitrate
  • Audio bitrate
  • Codec
  • Resolution
  • Frame rate
  • Container
  • Additional streams

The displayed stream bitrate may not always match the overall bitrate because the file can contain container overhead and other data.

For an existing file, the approximate overall bitrate can also be calculated from its actual size and duration:

Overall bitrate
= Actual file size in bytes × 8 ÷ Duration in seconds

A test export is especially useful before processing a long video or a large batch of files.


Video Bitrate Calculator vs. Video File Size Calculator

These two calculators solve opposite versions of the same problem.

Use the Video Bitrate Calculator when you know:

  • Target file size
  • Video duration
  • Audio bitrate

The result is the bitrate available for video.

Use the Video File Size Calculator when you know:

  • Video duration
  • Video bitrate
  • Audio bitrate

The result is the estimated file size.

Both calculators use the relationship between bitrate, duration, bits, and bytes.


Related Calculators

Video File Size Calculator — Estimate video storage from duration and video and audio bitrates.

Audio File Size Calculator — Estimate compressed or uncompressed audio file size.

Aspect Ratio Calculator — Simplify aspect ratios and calculate matching video dimensions.

DPI/PPI Calculator — Calculate image resolution, PPI, and print dimensions.


Frequently Asked Questions

What bitrate should I use for a 4 GB one-hour video?

With a 192 kbps audio track, the theoretical video bitrate is approximately 8.697 Mbps.

Use a slightly lower export setting if the completed file must remain strictly below 4 GB.

Is video bitrate the same as total bitrate?

No. Total bitrate can include video, audio, subtitles, metadata, container information, and other streams.

This calculator subtracts the entered audio bitrate from the theoretical total and displays the remainder as the available video bitrate.

Should I enter GB or GiB?

Use the unit specified by the file size requirement.

One GB equals 1,000,000,000 bytes. One GiB equals 1,073,741,824 bytes. Entering the wrong unit changes the calculated bitrate.

Should I use Mbps or kbps in my encoder?

Video export applications may use either unit.

1 Mbps = 1,000 kbps

The calculator displays the video bitrate in both formats.

Should I use the calculated value as my maximum bitrate?

Not necessarily. For VBR encoding, the calculated result is better treated as an approximate target or average limit.

A maximum bitrate can be set higher than the target, but the achieved average must remain low enough for the file to fit the required capacity.

Why is the final file larger than the target?

Possible reasons include container overhead, metadata, additional streams, encoder behavior, VBR results, and unit differences.

Reduce the target video bitrate and perform another test export.

Does a higher bitrate always improve quality?

A higher bitrate gives the encoder more data, but the visible improvement depends on the source, codec, resolution, frame rate, encoder, and existing compression.

Beyond a certain point, a larger file may provide little noticeable improvement.

Can the calculator choose the best codec?

No. The calculator performs a bitrate and storage calculation. Codec selection depends on quality, compatibility, encoding speed, playback support, and workflow requirements.

Can I calculate bitrate for a video without audio?

Yes. Enter 0 in the audio bitrate field. The complete calculated total bitrate will then be available for video, apart from real-world overhead.

Are my files or settings uploaded?

No file is required. The calculation runs locally in your browser using only the values entered into the calculator.


Calculation Methodology

OutputMath calculates the theoretical total bitrate from target file size and duration.

The calculator uses:

1 byte = 8 bits
1 kbps = 1,000 bits per second
1 Mbps = 1,000,000 bits per second
1 MB = 1,000,000 bytes
1 GB = 1,000,000,000 bytes
1 MiB = 1,048,576 bytes
1 GiB = 1,073,741,824 bytes

The entered audio bitrate is converted from kbps to Mbps and subtracted from the total available bitrate.

The result does not include container overhead, metadata, subtitles, attachments, chapters, or differences between selected and achieved bitrate.

The calculator does not evaluate subjective video quality or recommend a codec. For strict file size limits, use the result as a planning value, leave additional capacity, and verify the final settings with a test export.


Learn More About Video Bitrate

Not sure which bitrate to choose? Read our guide to the best video bitrate for 1080p, 1440p, and 4K to compare recommended settings for uploads, live streaming, different frame rates, and video codecs.