How Much Does It Cost for a Roof Replacement?

When planning for a new roof there are a number of different factors that play in to answering the question of how much does a new roof cost?