Is food masculine or feminine?
Food is not masculine, and food is not feminine.
How do you know if a German word is masculine or feminine?
German noun gender is determined generally based on the gender of the person (e.g. der Mann) OR because its form (usually a suffix, e.g. -ung is feminine) OR because it belongs to a noun group associated with a particular gender (e.g. metals are usually neuter).