D-dimer levels are measured using a blood test, which is often part of a broader diagnostic workup. The test is quick and minimally invasive, requiring a blood sample from a vein. The sample is then analyzed in a laboratory to determine the concentration of D-dimer fragments.