If you are interested in seeing all of most popular San Francisco attractions, please plan for at least 5 hours of sightseeing (i.e. 8+ hours of layover time) to account for getting to and from the airport, city traffic and of course using the public transit in San Francisco.