The chemical structure of methylated poly(1‐vinylimidazole) (PVIm‐Me) has been tuned for gene carrier properties, which are cell viability, the stability of its DNA polyion complexes, and gene expression. The resulting PVIm‐Me with lower methylation degree (6 and 20 mol%) exhibited no significant cytotoxicity, as compared with 40 mol% PVIm‐Me, in spite of the same concentration and chemical structure of positive charges. The DNA complex with 20 mol% PVIm‐Me stably retained the DNA, as compared with 6 or 40 mol% PVIm‐Me, which was examined by competitive exchange with dextran sulfate. As a result, the DNA complex with 20 mol% PVIm‐Me mediated most efficient gene delivery, where the resulting transfection activity was higher than that mediated by a positive control, poly(ethylenimine). These results suggest that the optimization of the balance of the methylimidazolium and the imidazole groups of PVIm‐Me is essential for gene carrier design. Copyright © 2014 John Wiley & Sons, Ltd.