Calculate song file sizes
Ask iLounge offers readers the opportunity to get answers to their iPod-, iPhone-, iPad-, iTunes-, or Apple TV-related questions from a member of the iLounge editorial team. We'll answer several questions here each week, and of course, you can always get help with more immediate concerns from the iLounge Discussion Forums. Submit your questions for consideration using our Ask iLounge Submit Form. We reserve the right to edit questions for grammar, spelling, and length.
Q: How much space does a song take up on an iPod nano 2G?
A: The amount of storage space that a given music file will take up on any digital music player is actually a function of the length of the song and the bitrate at which it is encoded.
Essentially, digital music formats specify a bit-rate measured in kilobits per second, abbreviated kbps. This specifies how much digital data is used to reproduce a single second of audio. For example, looking at a commonly-used bit-rate of 128 kbps, for each second of audio on the track, 128,000 bits of data are used. Higher bit-rates mean larger files, since more data is stored for each second of audio, but this also means additional quality, since there is more data present to reproduce a higher level of fidelity in the resulting audio.
Keep in mind that in this case we are talking about measurements in terms of computer bits rather than the more commonly-used storage measurement of bytes. There are eight bits in a byte, so these numbers can be divided by eight to determine approximately how many kiloBYTES of data each second of audio will take up. So a 128 kbps audio file would take up approximately 16KB for each second of audio (this is not an exact measurement due to some unit differences, but will do fine for the purpose of getting an approximate measurement).
So, by applying some basic math, you can easily calculate the file size of any given audio track after conversion to an MP3 or AAC file. Simply take length of the track in seconds, multiply it by the bit-rate, and then divided by eight to get the result in kbps.
So if you have a 5 minute song, encoding at 128kbps, you would do this as follows:
5 minutes = 300 seconds 128kbps * 300 seconds = 38,400 kilobits of data 38,400 kilobits / 8 = 4,800 kb
To take this one step further, you could then convert this into megabytes simply by dividing the result by 1,024.
Note that the key here is the bit-rate that you are encoding at, rather than the format itself. There are no significant size differences between MP3 and AAC formats inherently, for example—a 128 kbps MP3 and a 128 kbps AAC should result in files that are approximately the same size. There will be some additional space taken up in each file to store metadata such as track, album, artist, genre, and things like album artwork, but this is generally insignificant compared to the size of the audio data itself.
Further, the ratios between the bit-rates can be used to determine the approximate size differences. 256 kbps tracks will naturally take up twice the storage space as 128 kbps files.
One other important consideration to keep in mind is that the above formula will only work for “Constant Bit Rate” or CBR files. There is another type of encoding, known as “Variable Bit Rate” (VBR) which uses an average or variable bit-rate throughout the file. Since these files may have some sections at 128 kbps and others at 192 kbps, it’s difficult to determine exactly how much space these will take up, although the average bit-rate can still be used as an approximation. Note that most files downloaded from online sources will be in a CBR format, so this is seldom an issue unless you are encoding music yourself into a VBR format.
It should also be noted that the capacity specifications that Apple publishes for the various iPod models are based on 128 kbps files at four minutes per song. An iPod that is listed as holding “4,000 tracks” will hold significantly less if you are encoding at a higher bit-rate.
For a nice quick calculation of how many tracks each iPod can be expected to hold at various bit-rates, be sure to check out our iPod Storage Calculator:
- Will removing a credit card from Safari also remove it from Apple Pay?
- Can I mute Handoff calls coming into my Mac from my iPhone?
- How do I keep my iPhone calls from ringing on my Mac?
- Why doesn’t Traffic show up on my Today Notifications Screen?
- Why doesn’t my iPhone reconnect to Wi-Fi after I turn it on?
- Why can’t I see the iPad-style landscape view on my iPhone 6 Plus?
- Spotify penalizing artists who release Apple Music exclusives
- Apple releases new round of iOS 10 and tvOS 10 betas
- Report: 2017 iPhone to eliminate home button
- Apple to add payment technology to iPhone for transit passes, Apple Pay in Japan
- Apple releases iOS 9.3.5 ‘security update’
- Report: Apple developing its own Snapchat-style social video editing iOS app
- Apple announces Apple Music Festival lineup including Alicia Keys, Britney Spears + more
- Universal calls an end to exclusives amid criticisms that Apple Music is hurting the industry
- Apple reveals some of its upcoming AI advancements for the iPhone
- Apple Music’s royalty rates complicate Spotify’s contract negotiations
- Western Digital My Cloud (OS 3)
- Distil Union Stanley Stand
- Philips Sonicare FlexCare Platinum Connected Bluetooth Toothbrush
- Audeze EL-8 Titanium Over-Ear Headphones
- Defined Corp Dome Stand for Apple Watch and iPhone
- Speck StyleFolio Pencil for 9.7” iPad Pro
- Audeze Sine On-Ear Headphone
- First Alert Onelink Wi-Fi Smoke + Carbon Monoxide Alarm
- Logitech Create 9.7” iPad Pro Keyboard Case
- iDevices Outdoor Switch Power Outlet
- Inside the betas: iOS 10 Photos gets Advanced Computer Vision
- Inside the betas: iOS 10 Music app delivers ‘clarity and simplicity’
- Inside the betas: iOS 10 Maps gets a major redesign
- Inside the betas: iOS 10 shakes up the user experience
- Inside the betas: watchOS 3 promises a real speed boost
- Inside the betas: A sneak peek at what’s new in tvOS 10
- Filling the Gap: A look at third-party HomeKit apps
- Instant Expert: Secrets & Features of tvOS 9.2
- Instant Expert: Secrets & Features of iOS 9.3
- Opinion: Why Apple needs a dedicated HomeKit app