The cost of a roof replacement in San Francisco can vary depending on several factors, such as the size of the roof, the type of materials used, the complexity of the installation, and any additional services required. On average, you can expect a roof replacement in San Francisco to cost between $10,000 and $30,000.