How to Convert MB to GB Formula (Decimal vs Binary)
How to convert MB to GB formula: divide megabytes by 1,000 for storage devices (5,000 MB = 5 GB) or by 1,024 for RAM and file systems (5,000 MB ≈ 4.88 GiB). Drive makers count decimally while computers count in binary — hence two divisors. Run any value through our free unit converter; worked examples and rules below.
- The short answer: divide by 1,000 (or 1,024)
- Why two answers exist: decimal vs binary
- How many MB in a GB?
- GB to MB: the reverse formula
- The full ladder: KB → MB → GB → TB
- When to use 1,000 and when to use 1,024
- Worked examples: five everyday conversions
- MB to GB in Excel, Google Sheets, and Python
- Convert MB to GB in one click
- Three mistakes that corrupt storage math
The short answer: divide by 1,000 (or 1,024)
The mb to gb formula is one division: GB = MB ÷ 1,000. So 5,000 MB = 5 GB, 250 MB = 0.25 GB, and a 1,500 MB video file is 1.5 GB. That is the decimal answer — the one drive makers, phone makers, and ISPs use. There is a second answer for RAM and most operating systems: GiB = MiB ÷ 1,024, so 5,000 MB ≈ 4.88 GiB. Same digits, different divisor, different unit name. Which one your question wants depends on context — the rules are in the sections below, and our gigabytes to megabytes converter handles the reverse trip too.
Why two answers exist: decimal vs binary
Drive manufacturers count like the metric system: kilo = 1,000, mega = 1,000,000, giga = 1,000,000,000. Computers historically count in powers of two: 1,024 bytes per “kilobyte.” Both camps call their unit “MB” and “GB” in casual speech, which is why a “1 TB” drive shows as 931 GB in Windows — the famous gap our 1TB-shows-as-931GB explainer breaks down completely. Standards bodies tried to end the confusion in 1998 by naming the binary units mebibyte (MiB) and gibibyte (GiB), but decades later almost everyone still writes “MB” for both. Rule of thumb: if a human is selling you storage, assume ÷1,000; if software is reporting it, assume ÷1,024.
How many MB in a GB?
The direct answer to “how many MB in a GB”: 1,000 MB per GB in decimal (the SI definition used by storage makers), or 1,024 MiB per GiB in binary (the JEDEC convention used by RAM makers and Windows). A 128 GB phone therefore holds 128,000 MB of decimal storage — and will report roughly 119 GiB to the operating system. Neither number is “wrong”; they are answers in different unit systems, like miles versus kilometers. When a spec sheet just says “GB” with no qualifier, the safe assumption is decimal 1,000 — that is what the seller means. Memory cards and USB sticks follow the same convention: a “64 GB” card holds 64,000 MB, even though your camera may display it as 59.6 GiB.
GB to MB: the reverse formula
Going the other way, multiply: MB = GB × 1,000 (decimal) or MiB = GiB × 1,024 (binary). A 2.5 GB video file is 2,500 MB; an 8 GiB RAM stick is 8,192 MiB. The reverse trip is where people most often mix the divisors — converting GB → MB with ×1,000 and then MB → GiB with ÷1,024 in the same chain silently injects a 2.4% error per hop. Pick one system at the start of a calculation and stay in it until the final answer. Bookmark the pair: ÷1,000 down the ladder, ×1,000 back up — the same up/down logic works for KB↔MB and GB↔TB.
The full ladder: KB → MB → GB → TB
Each step up multiplies by 1,000 (decimal) or 1,024 (binary): 1,000 KB = 1 MB; 1,000 MB = 1 GB; 1,000 GB = 1 TB. In binary: 1,024 KiB = 1 MiB; 1,024 MiB = 1 GiB; 1,024 GiB = 1 TiB. Handy anchors: a 5 MB photo, a 50 MB app, a 700 MB CD, a 4.7 GB DVD, a 25 GB Blu-ray, a 128 GB phone, a 1 TB drive. Notice the DVD-to-Blu-ray jump is roughly ×5 — the same per-step logic, just with friendlier numbers. When a download says “2.4 GB” and your drive shows gibibytes, expect the drive to report about 2.23 GiB — same data, smaller-looking number.
When to use 1,000 and when to use 1,024
Use ÷1,000 when: reading SSD/HDD/USB packaging, comparing phone storage tiers, or doing ISP math. Use ÷1,024 when: reading Windows Explorer or macOS storage panes, sizing RAM, or working inside developer tools and disk utilities. Downloads sit in the middle — browsers usually report decimal MB while the file system reports binary, so a “1,000 MB” download may land as a “977 MiB” file. Phone settings are the messiest: Android and iOS mix conventions between screens. When precision matters (partitioning a drive, provisioning a server), state the unit explicitly — “500 GiB,” not “500 GB” — and the ambiguity vanishes.
Worked examples: five everyday conversions
Run the formula on real numbers. 500 MB of photos ÷ 1,000 = 0.5 GB — half a gigabyte of camera roll. 2,000 MB video project = 2 GB, a comfortable email-attachment... no, far too big for email; use a file-share link. 750 MB podcast backlog = 0.75 GB, about three-quarters of one gigabyte. 16,000 MB free on your phone = 16 GB decimal — room for roughly 4,000 photos or 4 hours of HD video. 8,192 MiB of RAM ÷ 1,024 = 8 GiB exactly, the classic laptop spec. Notice the last one: RAM is the one place the binary math comes out perfectly clean, because memory chips are physically built in powers of two — 8 GiB is 8,589,934,592 bytes, no rounding involved.
MB to GB in Excel, Google Sheets, and Python
Converting a column of file sizes? In Excel or Google Sheets, put the MB value in A2 and type =A2/1000 for decimal gigabytes or =A2/1024 for gibibytes, then fill down. Wrap it for clean display: =ROUND(A2/1000,2) shows 1.46 instead of 1.46484375. In Python it is one line: gb = mb / 1000 (or / 1024 for GiB). A common spreadsheet trap: mixing last month's decimal column with this month's binary column in the same SUM — label the header explicitly (“GB (decimal)” vs “GiB”) and the sheet stays honest. For one-off values, skip the spreadsheet: the converter linked above is faster than opening Excel.
Convert MB to GB in one click
The formula fits on a sticky note, but sticky notes do not do the dishes: for batch conversions — a folder of video files, a spreadsheet of backup sizes — use our free unit converter, which flips between MB, GB, TB, and bits in one click. The dedicated gigabytes to megabytes converter handles the reverse direction, and the ToolNest homepage rounds up every free tool. No signup, no upload — the math runs in your browser.
Three mistakes that corrupt storage math
First, mixing divisors mid-chain: converting 2 TB → GB with ×1,000 (2,000 GB) then GB → MiB with ÷1,024 gives 1,953 “GB” — a nonsense hybrid. Stay in one system per calculation. Second, gigabits vs gigabytes: ISPs sell gigabits (Gb); storage is gigabytes (GB). A “1 Gbps” connection moves 125 MB per second at best (1,000 ÷ 8) — that 4 GB movie needs ~32 seconds, not 4. Third, rounding too early: 1,500 MB ÷ 1,024 = 1.4648 GiB; rounding to 1.46 before multiplying back loses megabytes. Convert at full precision, round only the displayed answer — the same discipline our mph-to-kmh formula guide recommends for unit math generally.