If kept in the sealed container from the store, tofu stays fresh for months. Just keep on eye on the expiration date. Once taken out of the sealed container, it should be eaten within a week. If tofu has gone bad, it will have a yellow-ish color and won't smell fresh. It might also have a sour flavor.