4 GB = 4,096 MB. Each gigabyte is 1,024 megabytes, so you multiply by 1,024 rather than 1,000.
(You'll sometimes see drive makers use a rounded 1,000 instead, which is why a "4 GB" device can report slightly less in your operating system.)