This question already has an answer here:
Playing a barbarian, and thought the Magic Initiate feat would be a good way to grab some range cantrips and a single-use utility spell. Originally thought of going with warlock, but DM suggested I go wizard or sorcerer and grab Mage Armor so I could be a naked man with an AC of 18 (w/ 2h) or 20 (w/shield) at level one. UD says that as long as I'm not wearing armor, my AC is base (10) +con+dex. Mage armor ups the base to 13. Would I still retain the dex & con bonuses, from unarmored defense?