A protocol is provided to select structure-switching aptamers for small molecule targets based on a tunable stringency magnetic bead selection method. Aptamers selected with structure-switching properties are beneficial for assays that require a conformational change to signal the presence of a target, such as the described gold nanoparticle assay.