Using a large-scale, high-resolution magnetohydronamics cosmological simulation, we identify bars and box/peanut bulges and the galactic properties which determine their formation. We conclude that the primary driver for determinding the formation of a box/peanut bulge is the length and strength of the bar