The most important difference between the two is that butter is derived from dairy and is rich in saturated fats, whereas margarine is made from plant oils. ... If the margarine contains partially hydrogenated oils, it will contain trans fat, even if the label claims that it has 0 g.