pumps should be fairly accurate as they are tested at random by the state.
How you do it, is fill up you tank, hit the trip meter.
Run until you fill up again, at that point fill up at the exact same pump you filled up before to prevent variation in pumps.
Take how many miles you drove on the trip meter, and divide it by how many gallons of gas your tank took to fill back up. Simple as that