Skip to content

Video Duration Calculator

Work out duration from

Megabits per second, as shown by MediaInfo or your encoder.

Running time (h:mm:ss) —
Total seconds
—
Total minutes
—
Total hours
—

Video duration equals the file size in bits divided by the total bitrate, or the frame count divided by the frame rate. A 1 GB file (8,000,000,000 bits) encoded at 8 Mbps runs 1000 seconds, which is 0:16:40. With frames, 86,400 frames at 24 fps make exactly one hour.

About this tool

Editors, archivists and anyone planning storage often know a clip's size and bitrate, or its frame count, without having the file open in a player. This calculator turns either pair into a running time in hours, minutes and seconds, plus the same figure as total seconds, minutes and hours. It handles decimal units (MB, GB) and binary units (MiB, GiB), which differ by about 7 percent at the gigabyte scale. The size method assumes a constant total bitrate; variable-bitrate encodes give an estimate only, because the average bitrate a tool reports rarely matches the stream exactly, and container overhead adds a little size that carries no playing time.

How to use it

  1. Pick the method

    Choose file size and bitrate, or frames and frame rate.

  2. Enter size and unit

    Type the file size and pick MB, GB, MiB or GiB inside the field. Windows Explorer shows binary sizes even though it labels them GB.

  3. Enter the bitrate

    Use the overall bitrate in Mbps, video plus audio, from MediaInfo or your encoder settings.

  4. Or enter frames

    Give the frame count and the frame rate, such as 23.976, 25 or 29.97 fps.

Examples

1 GB file at 8 Mbps

Work out duration from
File size and bitrate
File size
1
Size unit
GB
Total bitrate (video + audio)
8

Result Running time (h:mm:ss): 0:16:40
Total seconds: 1,000
Total minutes: 16.67
Total hours: 0.278

  1. Size = 1 GB = 1000000000 bytes × 8 = 8000000000 bits
  2. Duration = 8000000000 bits ÷ 8000000 bit/s = 1000 s
  3. Duration = 0:16:40 (h:mm:ss)

A typical 1080p web encode. One decimal gigabyte holds 8 billion bits, which an 8 Mbps stream uses up in 1000 seconds.

4 GiB camera clip at 20 Mbps

Work out duration from
File size and bitrate
File size
4
Size unit
GiB
Total bitrate (video + audio)
20

Result Running time (h:mm:ss): 0:28:38
Total seconds: 1,717.99
Total minutes: 28.63
Total hours: 0.477

  1. Size = 4 GiB = 4294967296 bytes × 8 = 34359738368 bits
  2. Duration = 34359738368 bits ÷ 20000000 bit/s = 1717.987 s
  3. Duration = 0:28:38 (h:mm:ss)

Older cards split clips at 4 GiB (FAT32). At 20 Mbps each split file holds a little under 29 minutes.

86,400 frames at 24 fps

Work out duration from
Frames and frame rate
Frame count
86400
Frame rate
24

Result Running time (h:mm:ss): 1:00:00
Total seconds: 3,600
Total minutes: 60
Total hours: 1

  1. Duration = 86400 frames ÷ 24 fps = 3600 s
  2. Duration = 1:00:00 (h:mm:ss)

Cinema frame rate: 24 frames a second means 86,400 frames make exactly one hour.

How it is calculated

t = (S × B × 8) ÷ (R × 1,000,000) or t = N ÷ f

t
duration, seconds
S
file size in the chosen unit
B
bytes per unit: 10^6 (MB), 10^9 (GB), 2^20 (MiB), 2^30 (GiB)
R
total bitrate in megabits per second
N
number of frames
f
frame rate in frames per second

A byte is 8 bits, and bitrate prefixes are decimal, so 8 Mbps is 8,000,000 bits each second. Dividing the file's total bits by that rate gives the seconds of playback. For the frame method each frame lasts 1 ÷ f seconds, so N frames last N ÷ f. The seconds are then split into hours, minutes and seconds, rounded to the nearest whole second.

When not to use it

  • Do not rely on it for exact running time of a variable-bitrate file; read the duration from the container instead.
  • It cannot account for drop-frame timecode labels, only real elapsed time.
  • Files with several audio tracks or subtitles need all streams included in the bitrate.

Common mistakes

  • Entering megabytes per second (MB/s) where megabits per second (Mbps) are needed, which is off by a factor of 8.
  • Using only the video bitrate and forgetting the audio track.
  • Choosing GB when the size came from Windows, which reports GiB.

Frequently asked questions

Why does my file play longer than the estimate?

Most modern encodes use variable bitrate, and the average a tool reports is rounded. Container overhead also adds bytes that carry no picture or sound. Expect the size method to land within a few percent, not to the second.

What is the difference between GB and GiB?

A gigabyte (GB) is 1,000,000,000 bytes; a gibibyte (GiB) is 1,073,741,824 bytes. Windows shows GiB values but labels them GB, so a file Explorer calls 4 GB is 4 GiB, which holds about 7.4 percent more playing time at the same bitrate.

How long is 1 GB of 4K video?

It depends on the bitrate. Streaming 4K at about 16 Mbps gives roughly 8 minutes 20 seconds per gigabyte, while a camera recording 100 Mbps fills a gigabyte in 80 seconds.

Does 29.97 fps change the frame-based result?

Yes. 2,997 frames at 29.97 fps last exactly 100 seconds, but at 30 fps they last 99.9 seconds. Over an hour that gap reaches about 3.6 seconds, which is why broadcast uses drop-frame timecode.

Where do I find a file's bitrate?

MediaInfo lists an Overall bit rate for the whole file, which is the figure to use here. Encoder presets in HandBrake, OBS or Premiere also state the target video and audio bitrates; add them together.

Can I work backwards to a file size?

Not here; this page solves for time. For the reverse, the video file size calculator multiplies duration by bitrate to estimate storage.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, October 18). Video Duration Calculator. Tools Directory. Retrieved October 26, 2026, from https://tools.milunir.com/video-audio/media-utilities/video-duration-calculator/

MLA

Tools Directory Editorial Team. “Video Duration Calculator.” Tools Directory, 18 Oct. 2026, https://tools.milunir.com/video-audio/media-utilities/video-duration-calculator/. Accessed 26 Oct. 2026.

Chicago

Tools Directory Editorial Team. “Video Duration Calculator.” Tools Directory. Last modified October 18, 2026. Accessed October 26, 2026. https://tools.milunir.com/video-audio/media-utilities/video-duration-calculator/.

Link<a href="https://tools.milunir.com/video-audio/media-utilities/video-duration-calculator/">Video Duration Calculator – Tools Directory</a>