Nucleic acids are common analytes for assessing biological systems; however, bias from enzymatic manipulation can cause concern. Here a method is described for label-free detection of nucleic acids using polyaniline. This sensitive, cost-effective sensor technology can distinguish single nucleotide differences between molecules.