DNA molecular weight markers are routinely used in agarose gel electrophoresis. Here we report a method called PCR-synthesized marker (PSM) to generate DNA molecular rulers by PCR in the laboratory. This strategy can also be used to produce 100 bp RNA molecular weight markers by run-off transcription.