iMac (27-inch, Late 2012 and later): Installing or replacing memory
General Information
The iMac (21.5-inch, Late 2012) and iMac (21.5-inch, Late 2013) has no user-accessible memory compartment. Memory replacement on the iMac (21.5-inch, Late 2012) and iMac (21.5-inch, Late 2013) must be done by an Apple Retail Store or Apple Authorized Service Provider.
iMac (27-inch, Late 2012) and iMac (27-inch, Late 2013) computers have four SO-DIMM DDR3 SDRAM (Synchronous Dynamic Random-Access Memory) slots located in a compartment on the rear of the computer just above the AC power cord receptacle. You can use 4 GB or 8 GB SDRAM SO-DIMMs of 1600 MHz DDR3 memory in each slot. The maximum amount of memory you can install in the computer is 32 GB (an 8 GB SO-DIMM in each slot).
Only use SO-DIMMs that meet certain criteria.