Fat has more carbon and hydrogen atoms. The bonds between these atoms stores significantly more energy. When fats are broken down, more energy is released compared to other nutrients which is why it has 9 calories per gram.