Margarine should be stored in the refrigerator where it will keep for 2 months or more and for long term storage, it may be kept in the freezer for a half year or longer. Like butter and other solid fats, margarine will absorb the flavors and odors of other foods so it should be tightly wrapped or covered when storing.