Techniques for gas analysis using a parallel dipole line (PDL) trap viscometer are provided. In one aspect, a gas analysis system is provided which includes: a PDL trap including: a pair of diametric cylindrical magnets, and a diamagnetic rod levitating above the magnets; and a motion detector for capturing motion of the diamagnetic rod. The motion detector can include a digital video camera positioned facing a top of the PDL trap so as to permit capturing video images of the diamagnetic rod and the system can include a computer for receiving and analyzing video images from the video camera. Methods for measuring gas viscosity and pressure using the PDL trap system are also provided.