Pennsylvania voted for the Whig candidate, Zachary Taylor, over the Democratic candidate, Lewis Cass. Taylor won Pennsylvania by a margin of 3.62%. Pennsylvania proved to be decisive as Cass would have won the Electoral College if he had carried the state.