How-to GuidePublished 12 min read

How to Calculate Video File Size and Recording Time from Bitrate: Mbps to MB per Minute and GB per Hour, GB vs GiB, and Working Back from a Target Size

Video file size is “bitrate × seconds ÷ 8”, and recording time is “capacity × 8 ÷ bitrate”. A dashcam at 12Mbps uses 90MB a minute and records about 11 h 51 min on a 64GB SD card. There are a few places where people trip up, though: the difference between the “b” in Mbps and the “B” in MB, why a 64GB card shows up as 59.6GB on a computer, forgetting to add the audio bitrate, and working backward to fit a video under a size limit. This guide walks through unit conversion, recording time, file size, the bitrate for a target size, the FAT32 4GiB split, and write speed and speed classes, using figures calculated with the Recording Time & Video File Size Calculator.

The short answer: size is bitrate × seconds ÷ 8, and 1Mbps is 7.5MB a minute

A video's bitrate is how many bits of data it uses each second. Multiply the bits per second by the number of seconds and divide by 8, and you get bytes, the size of the file. Turn it around: multiply a capacity in bytes by 8 and divide by the bitrate, and you get how many seconds you can record. Those two formulas are all you need.

Common questionAnswer
How many MB is 1Mbps for a minute?7.5MB (0.45GB per hour)
How many MB a minute at 12Mbps (Full HD dashcam)?90MB (5.4GB per hour)
How long on a 64GB SD card at 12Mbps?About 11 h 51 min (about 11 h 43 min with 128kbps audio)
A 10-minute video at 8Mbps video + 128kbps audio?About 609.6MB
How do I fit a 3-minute video into 25MB?Video at or below 927kbps (5% margin, 128kbps audio)
How many GB does a 64GB card show on a computer?About 59.6GB (because it counts in GiB)
Write speed needed for 4K at 100Mbps?12.5MB/s; V30 is the guide

Every figure in the table was calculated with the Recording Time & Video File Size Calculator. In one place it gives recording time from capacity and bitrate, the days before a security camera system overwrites footage based on the number of cameras and hours recorded per day, file size from video length, the bitrate that fits a target size, and the required write speed and speed class.

Sorting out the units: bits and bytes, M and G, and turning Mbps into MB per minute and GB per hour

In Mbps (megabits per second), the bitrate unit, the “b” means bits. In MB (megabytes), the file size unit, the “B” means bytes. One byte is 8 bits, so you divide by 8 to go from bits to bytes. M means a million (10^6), G means a billion (10^9), and the k in kbps means 1,000.

  • 1Mbps = 1 million bits per second = 0.125MB per second
  • MB per minute = Mbps × 60 ÷ 8 = Mbps × 7.5
  • GB per hour = Mbps × 3600 ÷ 8 ÷ 1000 = Mbps × 0.45
  • To go back from MB per minute to Mbps = MB per minute ÷ 7.5
  • 128kbps audio is 0.128Mbps. Add it to the video bitrate before you calculate

Here are the values in the tool's “Typical bitrate” list, converted to size per minute and per hour (video only). Even at the same quality, real values vary with the model, settings and how much motion there is.

Use (guide)BitratePer minutePer hour
Security camera, Full HD (H.265)2Mbps15MB0.9GB
Security camera, Full HD (H.264)4Mbps30MB1.8GB
Phone, 1080p 30fps (HEVC)8Mbps60MB3.6GB
Dashcam, Full HD12Mbps90MB5.4GB
Phone, 1080p 30fps (H.264, most compatible)17Mbps127.5MB7.65GB
Phone, 4K 30fps (HEVC)23Mbps172.5MB10.35GB
Mirrorless / camcorder, Full HD 60p50Mbps375MB22.5GB
Phone, 4K 60fps (HEVC)53Mbps397.5MB23.85GB
Mirrorless, 4K 30p (100Mbps)100Mbps750MB45GB
Mirrorless, 4K 60p (150Mbps)150Mbps1,125MB67.5GB

If a phone's settings screen says something like “about ◯MB per minute”, switch the tool's unit to “MB/min” and enter the number as it is.

Calculating recording time: capacity × 8 ÷ bitrate

To record at 12Mbps on a 64GB SD card, take 64 × 10^9 bytes × 8 = 512 billion bits and divide by 12 million bits per second: 42,667 seconds, or about 11 h 51 min. Add 128kbps AAC audio to make 12.128Mbps and it becomes 42,216 seconds, about 11 h 43 min. That second figure is what the tool shows with its starting settings (64GB, Dashcam, Full HD, AAC 128kbps).

Capacity4Mbps12Mbps23Mbps100Mbps
32GB17 h 46 min5 h 55 min3 h 5 min42 min
64GB35 h 33 min11 h 51 min6 h 11 min1 h 25 min
128GB71 h 6 min23 h 42 min12 h 22 min2 h 50 min
256GB142 h 13 min47 h 24 min24 h 44 min5 h 41 min
1TB (1000GB)555 h 33 min185 h 11 min96 h 37 min22 h 13 min

The table is part of the tool's “Recording time chart” (total bitrate including audio, minutes rounded down). Double the capacity and the recording time doubles; double the bitrate and it halves. If your device's specs list a bitrate, entering that value in “Video bitrate” is the most accurate approach.

Security camera retention: add up the bitrate of every camera, then divide by hours recorded per day

When several cameras record to one recorder, add their bitrates together to get the recording time, then divide by the number of cameras for the time per camera. Divide that by the hours recorded per day and you get the number of days before old footage is overwritten.

HDDCamerasRecorded per dayRecording time per cameraUntil overwritten
1TB4Mbps × 424 h138 h 53 minAbout 5.8 days
1TB4Mbps × 48 h138 h 53 minAbout 17.4 days
1TB2Mbps × 824 h138 h 53 minAbout 5.8 days
2TB4Mbps × 424 h277 h 46 minAbout 11.6 days
2TB2Mbps × 424 h555 h 33 minAbout 23.1 days
2TB2Mbps × 412 h555 h 33 minAbout 46.3 days

1TB with 4Mbps × 4 cameras and 1TB with 2Mbps × 8 cameras both total 16Mbps, so they keep footage for the same number of days. There are three ways to keep more days: a bigger HDD, a lower bitrate (switching from H.264 to H.265, or lowering resolution or frame rate), or recording only when motion is detected so fewer hours are recorded each day. Changing “Hours recorded per day” in the tool gives a rough figure for motion-triggered recording.

Video file size: bitrate × seconds ÷ 8

To find how many MB a video or screen recording will be, multiply the total bitrate by the seconds and divide by 8. A 10-minute video at 8Mbps video + 128kbps audio is 8,128,000 × 600 ÷ 8 = 609,600,000 bytes, about 609.6MB. This is the example the tool's “Video file size (time → size)” section starts with.

VideoFile sizeShown on a computer
3 min, 8Mbps + 128kbps audioAbout 182.9MBAbout 174.4MB (MiB)
10 min, 8Mbps + 128kbps audioAbout 609.6MBAbout 581.4MB (MiB)
1 min, 17Mbps + 128kbps audioAbout 128.5MBAbout 122.5MB (MiB)
1 min, 53Mbps (no audio)397.5MBAbout 379.1MB (MiB)
1 hour, 23Mbps (no audio)10.35GBAbout 9.64GB
1 hour, 100Mbps (no audio)45GBAbout 41.91GB

“Shown on a computer” counts 1MB as 2^20 bytes and 1GB as 2^30 bytes. The same file looks a little smaller in a computer's file list than it does in a camera or app.

Working back to the bitrate that fits a target size

When you need a video to stay under a limit, such as the largest file you can send, flip the formula to get the maximum video bitrate. The tool's “Bitrate to fit a target size (size → bitrate)” section uses this formula.

  • Video bitrate (kbps) = target size (bytes) × 8 × (1 − margin) ÷ seconds ÷ 1000 − audio bitrate (kbps)
  • The margin estimates on the small side to allow for variable bitrate (VBR) swings and the video file's container data. It starts at 5%
  • If the audio alone exceeds the target size, the result is “Won't fit”
Target sizeLengthAudioMarginVideo bitrate (keep at or below)
25MB3 minAAC 128kbps5%927kbps
25MB3 minAAC 128kbps0%983kbps
25MB3 minAAC 128kbps10%872kbps
10MB1 minAAC 128kbps5%1138kbps
1GB10 minAAC 128kbps5%12538kbps (about 12.5Mbps)
4GiB (FAT32)1 hourAAC 128kbps5%8939kbps (about 8.9Mbps)
10MB10 minAAC 128kbps5%Won't fit

Try to fit a 10-minute video into 10MB and the 128kbps audio alone comes to 128,000 × 600 ÷ 8 = 9.6MB, more than the 9.5MB left after the 5% margin. The only options are to lower the audio bitrate or shorten the video. Also note that 10MB for 1 minute, 50MB for 5 minutes and 100MB for 10 minutes all work out to “10MB per minute”, so the video bitrate is the same 1138kbps for each.

GB vs GiB, and FAT32's 4GiB: why storage seems to shrink

On SD cards and HDDs, 1GB means 1 billion bytes, but computers display 1GB as 2^30 bytes (about 1.07 billion bytes, a GiB). For the same capacity, the computer shows a number about 93% as large. Nothing has been lost.

Card or HDD labelShown on a computer
32GBAbout 29.8GB
64GBAbout 59.6GB
128GBAbout 119.2GB
1TBAbout 931.3GB
2TBAbout 1862.6GB

The other “capacity wall” is FAT32. Cards of 32GB or less (SDHC) are formatted as FAT32, and a single file can be at most 4GiB (about 4.29GB). Record for a long time and the footage is split into a new file every 4GiB. The length before each split is 4,294,967,295 bytes × 8 ÷ bitrate.

Bitrate (total)Until the 4GiB split
4MbpsAbout 143 min (2 h 23 min)
8Mbps + 128kbps audioAbout 70 min
12MbpsAbout 47 min
23Mbps + 128kbps audioAbout 24 min
100MbpsAbout 5 min

Cards of 64GB or more (SDXC) use exFAT, so the 4GiB limit doesn't apply. Some devices still split recordings every few minutes, though. It's also worth remembering that a video larger than 4GiB won't fit as a single file on a FAT32 card or USB stick.

Required write speed and speed classes: Mbps ÷ 8 = MB/s

While recording, the card has to keep writing data as fast as the bitrate. The required write speed (MB/s) is the bitrate (Mbps) ÷ 8. When several cameras write to the same storage, add them together. An SD card's speed class shows the minimum write speed guaranteed while recording.

BitrateRequired write speedVideo Speed Class guide
12Mbps (dashcam)1.5MB/sV6
23Mbps (phone 4K)2.875MB/sV6
50Mbps (Full HD 60p)6.25MB/sV10
100Mbps (4K 30p)12.5MB/sV30
150Mbps (4K 60p)18.75MB/sV30
  • The minimum write speed is 10MB/s for Class 10, U1 and V10, 30MB/s for U3 and V30, 60MB/s for V60 and 90MB/s for V90
  • The tool shows the slowest Video Speed Class (V6 to V90) that meets the required speed as its recommendation
  • For dashcams and security cameras, the number of rewrites is a bigger strain than speed, so a high-endurance card built for long overwrite cycles is the safer choice

How to calculate it with the tool

  1. 1

    1. Choose the capacity

    In “How many hours fit on an SD card or HDD?”, pick a capacity (GB) or type one into “Enter capacity”. If part of the card is set aside for event recordings, as on a dashcam, lower “Share usable for recording”.

  2. 2

    2. Enter the bitrate

    Pick the closest use from “Typical bitrate”, or enter the value from the device's specs in “Video bitrate” as Mbps or MB/min. Choose the audio bitrate too.

  3. 3

    3. Enter the cameras and hours per day

    For security cameras, enter “Number of cameras” and “Hours recorded per day” to get the recording time per camera and the days until overwritten. The required write speed and the “Single-file limit (FAT32)” are shown alongside.

  4. 4

    4. Get the file size

    Enter a length and bitrate in “Video file size (time → size)” to see the size in MB or GB and how it is shown on a computer.

  5. 5

    5. Work back from a target size

    In “Bitrate to fit a target size (size → bitrate)”, choose the target size (10MB, 25MB, 4GiB (FAT32) and so on), the length, the audio and the margin to get the maximum video bitrate.

Common reasons the numbers come out wrong

  • Mixing up bits and bytes: reading 12Mbps as “12MB per second” overestimates the size eightfold. The right answer is 1.5MB per second
  • Forgetting the audio: in a small video with around 1Mbps of video, 128kbps of audio is more than a tenth of the total. It matters most when you're fitting a target size
  • Confusing the card's GB with the computer's GB: even if a 64GB card shows 59.6GB free on a computer, calculate recording time with 64GB
  • Variable bitrate: the spec value may be an average or a maximum, and files get bigger in scenes with lots of motion
  • Space the device uses: event recording areas and the management files the device writes make the actual recording time shorter

The tool's results are estimates using 1GB = 1 billion bytes and 1Mbps = 1 million bits per second. If the device manual has a recording time table, go by that.

FAQ

What's the formula for file size from bitrate?
File size (bytes) = bitrate (bits per second) × seconds ÷ 8. At 1Mbps that's 7.5MB a minute and 0.45GB an hour. A 10-minute video at 8Mbps video + 128kbps audio is 8,128,000 × 600 ÷ 8 = about 609.6MB.
How do I convert Mbps to MB per minute?
Multiply Mbps by 7.5 (× 60 seconds ÷ 8). 12Mbps is 90MB per minute and 100Mbps is 750MB per minute. To go from MB per minute back to Mbps, divide by 7.5. GB per hour is Mbps × 0.45.
How many hours can a 128GB SD card record at 12Mbps?
128 × 10^9 × 8 ÷ 12,000,000 = 85,333 seconds, about 23 h 42 min (no audio). 64GB gives about 11 h 51 min and 32GB about 5 h 55 min; it scales with capacity.
What bitrate do I need to fit a video into 25MB?
It depends on the length. For a 3-minute video with a 5% margin and 128kbps audio, keep the video at or below 927kbps; with a 10% margin, at or below 872kbps. The answer is the same whenever the size per minute is the same: 10MB for 1 minute also needs 1138kbps or less.
How do I calculate how many days a security camera system keeps footage?
Work out the recording seconds as HDD capacity × 8 ÷ (one camera's bitrate × number of cameras), divide by the number of cameras for the time per camera, then divide by the hours recorded per day. With 4 cameras at 4Mbps recording 24 hours a day on 1TB, each camera gets about 138 h 53 min, so footage is overwritten after about 5.8 days.
Why do long recordings on a 32GB card get split into several files?
Cards of 32GB or less (SDHC) use FAT32, which limits a single file to 4GiB (about 4.29GB). At 12Mbps a new file starts about every 47 minutes, and at 100Mbps about every 5 minutes. Cards of 64GB or more (SDXC) use exFAT, so this limit doesn't apply.

Tools in this article

Related articles

How-to Guide14 min read

How to Count and Play Polyrhythms: Counting 3 Against 2, 4 Against 3 and 5 Against 4 on Least-Common-Multiple Cells, the Right and Left Hand Order, Intervals in ms by BPM, and How to Practice

When you try to practice 3 against 2 (3 over 2) or 4 against 3 (4 over 3) on drums or piano, it is hard to tell where the right and left hands meet and in what order to play, and one hand keeps getting pulled along by the other. If you divide one cycle into as many cells as the least common multiple of the two numbers and count those, it becomes clear which note lands on which cell. 3 against 2 has 6 cells, with the right hand on 1, 3 and 5 and the left hand on 1 and 4; 4 against 3 has 12 cells, with the right hand on 1, 4, 7 and 10 and the left hand on 1, 5 and 9. This article covers how to count and the order of the hands, a chart of 12 common polyrhythms including 5 against 4 and 7 against 4, how to work out note intervals in ms from the BPM, how 6 against 4 and polymeters differ, a practice order that gets you playing it, and how to read your timing errors, all with numbers calculated by the Polyrhythm Metronome.

Read article →
How-to Guide13 min read

How to Write and Read Roman Numerals: Writing Place by Place, the Subtraction Rule for 4 and 9, Years and Birthday Dates (Tattoos and Engravings), and Common Mistakes Such as IIII and IC

2026 is MMXXVI and 1999 is MCMXCIX. You see Roman numerals in film credits, on clock faces and in anniversary engravings, but the moment you try to write one yourself, you get stuck on questions like “is IIII fine for 4?”, “can I write 99 as IC?” and “where do I split 1988?”. Roman numerals need only seven letters, I, V, X, L, C, D and M, plus four rules. The most reliable method is to split the number into thousands, hundreds, tens and ones, turn each place into Roman numerals and join them. This article covers how to write and read them step by step, a list of common mistakes with the correct forms, a chart of years, the order and checks to use when turning a birthday or wedding date into Roman numerals, how to write 4,000 and above, and what to watch out for with the clock IIII and symbols such as Ⅻ, all using results from the Roman Numeral Converter.

Read article →
How It Works13 min read

How to Calculate Opening Hand Probability: Odds of a 3-of or 4-of in Your Opening Hand, the Hypergeometric Distribution by Hand, How Many Copies for 80%, and Combo, Prized-Card and Mulligan Odds

Whether a card will show up in your opening hand can be worked out exactly with a calculation called the hypergeometric distribution. A card with 3 copies in a 40-card deck shows up at least once in a 5-card opening hand 33.76% of the time, and a card with 4 copies in a 60-card deck shows up in a 7-card hand 39.95% of the time. Both are roughly “1 in 3”, which most players find lower than they expected. This article covers the formula and how to work it out on a calculator, why the binomial distribution gives the wrong answer, the chance of exactly x copies and the expected number, quick-reference tables for 40- and 60-card decks, how many copies reach 80%, the odds by turn going first or second, the chance of assembling a two-card combo, and prized-card and mulligan odds, all with figures from the Opening Hand Probability Calculator.

Read article →