Home/Calculators/Tech & Data/Megabytes to Gigabytes Calculator

Megabytes to Gigabytes Calculator

Convert megabytes (MB) to gigabytes (GB) instantly and free.

megabytes-to-gigabytes-calculator
Result
—
In summary: 5120 MB equals 5 GB. Using the binary convention, 1 GB = 1024 MB, so divide megabytes by 1024: 5120 ÷ 1024 = 5 GB. Enter any MB value to convert.

How MB to GB conversion works

A megabyte is smaller than a gigabyte by a factor of 1024 in the binary system used for RAM and files: 1 GB = 1024 MB. So divide the number of megabytes by 1024. For 5120 MB: 5120 ÷ 1024 = 5 GB.

Pair this with the bytes to bits calculator when you need the fuller picture.

Binary vs decimal (1024 vs 1000)

Storage makers often use the decimal (SI) convention where 1 GB = 1000 MB. This calculator uses the binary 1024 factor that operating systems report. To convert the other way, use the gigabytes to megabytes calculator.

The gap grows with size. A drive sold as 500 GB decimal shows as about 465 GB in Windows, which is the same number of bytes counted with the 1024 factor rather than 1000. Phone storage, RAM and file managers all follow the binary convention, while network speeds and disk marketing use the decimal one.

MB to GB reference table

Common conversions (1024 factor):

MegabytesGigabytes
512 MB0.5 GB
1024 MB1 GB
2048 MB2 GB
5120 MB5 GB
10240 MB10 GB

Need bits and bytes? Try the bits to bytes calculator.

A rough feel for the numbers helps: a 4 GB video file is 4096 MB, a 700 MB CD image is about 0.68 GB, and a 25 GB Blu-ray holds 25600 MB. Round figures such as 1536 MB (1.5 GB) turn up often in RAM and virtual machine settings.

Frequently asked questions

How many GB is 5120 MB?
5 GB, using the binary factor of 1024 MB per GB.
How do I convert MB to GB?
Divide the number of megabytes by 1024. For example 2048 MB ÷ 1024 = 2 GB.
Is 1024 MB equal to 1 GB?
Yes in the binary convention used by operating systems. Drive makers sometimes treat 1000 MB as 1 GB.
Why do file sizes differ between apps?
Some apps divide by 1000 and others by 1024, so the same file can be labeled with slightly different GB values.
Does this calculator handle decimals and very small values?
Yes, any positive MB value works, including decimals. Values under 1024 MB simply return a fraction of a gigabyte, so 256 MB shows as 0.25 GB rather than rounding down to zero.
How this tool works

The formula behind this tool is written out in full in the sections above, so you can check the maths yourself. Every calculator on Calculorium is verified against worked examples with automated tests before it is published, and pages are reviewed as formulas or standards change. Nothing you type is sent anywhere — the calculation runs entirely in your browser. Read how we build and check these tools.

Last updated: July 27, 2026 · Calculations run in your browser. Estimates for information only.