<page_title> 2012 United States presidential election in Virginia </page_title> <section_title> Results </section_title> <table> <cell> Barack Obama (Incumbent) <col_header> United States presidential election in Virginia, 2012 </col_header> <col_header> Candidate </col_header> <row_header>  </row_header> </cell> <cell> 51.16% <col_header> United States presidential election in Virginia, 2012 </col_header> <col_header> Percentage </col_header> <row_header>  </row_header> </cell> <cell> Mitt Romney <col_header> United States presidential election in Virginia, 2012 </col_header> <col_header> Candidate </col_header> <row_header>  </row_header> </cell> <cell> 47.28% <col_header> United States presidential election in Virginia, 2012 </col_header> <col_header> Percentage </col_header> <row_header>  </row_header> </cell> </table>
Virginia was won by President Barack Obama with 51.16% of the vote to Mitt Romney's 47.28%, a 3.88% margin of victory.