When we think of measurement, one kilogram is a 1000 grams and one kilometre is a 1000 metres. So why is one kilobyte equal to 1024 bytes? The answer lies in how early computer engineers interpreted tiny amounts of storage. They noticed that 2^10 (1024) was very close to 10^3 (1000) and therefore used the prefix of “kilo” taken from the greek word "khilioi" (meaning one thousand) to make the word kilobyte.
Things become more confusing when we reach a Gigabyte. One gigabyte actually translates as 1024 bytes x 1024 bytes x 1024 bytes which is equal to 1,073,741,824 bytes. However, most people refer a Gigabyte as 1,000,000,000 (one billion) bytes, where Giga means one billion.