A megabyte in computing is used primarily for quantifying the size of data storage or data transmission. It's commonly used to measure the size of small to medium-sized files, like text documents or medium-quality photographs, and the capacity of storage devices.