500 GB equals 512,000 megabytes, using the 1 GB = 1,000 MB convention.
Worth knowing that operating systems often report using binary units instead, so a "500 GB" drive typically shows up as somewhere near 465 GiB in your file manager.