Capsule and filter unit for the preparation of a nutritional product in a device adapted to supply liquid in the capsule. The capsule is constructed to have at least one compartment containing nutritional ingredients for the preparation of the nutritional product in combination with the supplied liquid, and a filter adapted for removing contaminants contained in the liquid. The filter is formed as a relatively rigid filter unit that includes a filter membrane and an outlet wall for supporting the filter membrane. The outlet wall has at least one liquid outlet communicating with the compartment.