margarine and butter can both be used as a substitute for shortening, though their moisture contents should be taken into consideration before making the swap. while shortening is 100% fat, margarine and butter contain a small percentage of water (so, shortening adds more fat, thus more richness and tenderness).