A Kilobyte is actually 2 to the 10th power bytes. True measurement is 1,024 bytes.
A Megabyte is actually 2 to the 20th power bytes. True measurement is 1,048,576 bytes. It's typically rounded down to 1,048,000 bytes for easier calculation (but is still roughly an exact figure).
A Gigabyte is actually 1,024 Megabytes. True measurement is 1,073,741,824 bytes.
A Terabyte is actually 1,024 Gigabytes. True measurement is 1,099,511,627,776 bytes.