At its most fundamental level, the iMac does, in fact, come equipped with a battery; however, this battery is only big enough to power onboard components like the clock even when the device is not plugged in. It is not big enough to power the iMac in the case that there is a power failure, for example.