Systems and methods of venting a cartridge of an infusion pump system are disclosed. The system can be actively vented. A interior volume of the system can be actively vented at times when a drive mechanism of the system is inactive. Such an active venting system can include a valve that seals a volume of the cartridge that can be vented from the ambient when pressure measurements in the cartridge are made by a pressure sensor for greater measurement and calculation accuracy.