The short answer
Walk the neighbourhoods, ride the cable cars once, use Muni buses and the historic streetcars for the cross-town hops, BART for the airport and the East Bay, and ferries for Sausalito and the bay. Rideshare fills the gaps and the hills. Hire a car only for the day trips. San Francisco is seven miles square, so nothing is far — but the hills decide the route.
From the airports
San Francisco International (SFO) is thirteen miles south. BART trains run from the airport station (reached by the AirTrain from the terminals, or on foot from the international terminal) to downtown's Embarcadero, Montgomery and Powell stations in about thirty minutes; tap a Clipper card or buy a ticket. Rideshare (Uber, Lyft, Waymo's driverless cars) and taxis pick up from signed areas, twenty-five to forty-five minutes to the city depending on the 101 freeway. Oakland International (OAK), across the bay, has its own BART connector and serves some domestic flights; San Jose (SJC) is an hour south.
Cable cars
Three lines survive: Powell–Hyde from Union Square over Nob and Russian hills to the Wharf at Hyde and Beach; Powell–Mason from the same turnaround to the Wharf via North Beach's edge; and California Street from the Embarcadero over Nob Hill to Van Ness. The Powell lines queue at the turnarounds; walk a few blocks up and board mid-route, or ride before nine. Pay with a Clipper card, a Muni visitor passport or cash to the conductor. The Cable Car Museum on Nob Hill shows the winding wheels.
Muni: buses, streetcars and metro
Muni's buses cover every neighbourhood; the historic F-line streetcars — vintage trams from cities around the world — run from the Castro down Market Street and along the Embarcadero to the Wharf, and are the best cheap sightseeing in the city; the Muni Metro light rail runs under Market and out to the Sunset, the Mission and the ballpark, with the new Central Subway to Chinatown. Tap a Clipper card (in your phone's wallet is easiest) or a contactless bank card on buses and at the gates; a visitor passport for one, three or seven days covers everything including the cable cars.
BART
The regional rail runs under Market Street to the Mission (16th and 24th streets), south to the airport and the Peninsula, and under the bay to Oakland, Berkeley and beyond. Clipper or a ticket; fares are by distance. The fastest way to Berkeley's campus, Oakland's Lake Merritt and the airport.
Ferries
From the Ferry Building and Pier 41, ferries reach Sausalito (thirty minutes), Tiburon, Oakland's Jack London Square, Alameda, Vallejo and Angel Island; the Alcatraz boats leave from Pier 33 only. The Sausalito ferry is the classic end to a bridge walk or ride; the bay cruises from the Wharf circle under the bridge.
Walking and the hills
The city is made for walking if you plan the gradients: the Embarcadero and the waterfront are flat; Market Street is flat; the Marina and the Mission are flat; everything between is a climb. The Filbert and Greenwich steps on Telegraph Hill, the Lyon Street steps in Pacific Heights, the Lombard block and the hidden stairways of Russian Hill are walks worth planning. The Crosstown Trail and the Coastal Trail from the bridge to Lands End are the long ones. Comfortable shoes and a layer are the equipment.
Bikes, scooters and rideshare
Bay Wheels e-bikes dock across the city; the Embarcadero, the Marina, Crissy Field to the bridge and Golden Gate Park's car-free JFK Promenade are the easy rides; the bridge to Sausalito with a rental bike is the classic. E-scooters by app. Uber and Lyft are everywhere, and Waymo's driverless cars now take passengers across the city, a novelty worth one ride.
Driving and day trips
Hire a car for the day from a city or airport location for Muir Woods (reserve the parking or shuttle in advance), the Marin Headlands and Point Reyes, Napa and Sonoma, Half Moon Bay and the coast road to Santa Cruz, or the longer run to Yosemite. In the city, parking is scarce, garages expensive, street rules strict (kerb your wheels on hills) and car break-ins common — never leave anything visible. Bridge tolls are electronic; the hire company handles them.
Plan it with Dubizzo
Dubizzo books the airport transfer, the Muir Woods shuttle, a driver for wine country and the Sausalito ferry, and tells you which bus spares you the hill. Start in the planner, then read where to stay and the three-day itinerary.