There are 1024 megabytes (MB) in one gigabyte (GB). That's because digital storage is measured in powers of two, so each step up multiplies by 1024 rather than 1000.
It's a handy bit of math to remember whenever you're comparing file sizes or storage space.