A quart is a unit of measurement for volume . It is a quarter of a gallon or two pints . The quart is a unit of volume ( for either the imperial or United States customary units ) equal to a quarter of a gallon , two pints , or four cups .