What is the conversion factor for ppm to mg/m3?

The conversion factor for ppm to mg/m3 varies from gas to gas.

The equation is: ppm reading x (MW / 22.41)

For example CO has MW of 28.01 so the conversion for 40ppm is: 40 x (28.01 / 22.41) = 50mg/m3

[MW = Molecular Weight]