An actively heated or cooled portable container is provided. The container has a portable body with a receiving portion defined by an inner wall that receives a liquid. A heating and cooling system housed in the portable body has a cooling element in thermal communication with at least a portion of the inner wall to remove heat from the liquid. The heating and cooling system also has a heating element in thermal communication with at least a portion of the inner wall, control circuitry to control the operation of the heating element and one or more power storage elements to provide electrical energy to the heating element and/or control circuitry. The control circuitry controls the heating element to add heat to the liquid in the receiving portion to maintain the temperature of the liquid at a predetermined temperature or increase the temperature of the liquid above said predetermined temperature. Optionally, the control circuitry can calculate a volume of the liquid in the receiving portion of the portable body based on sensed information indicative of a temperature of the liquid in the receiving portion.