Getting to San Francisco from SFO Airport, sorted by price: (*)
Rideshare.
Price from $40 to $150 in peak times. 15-30 min without traffic. 24x7.
Traditional taxi.
Around $60 but scarce in peak hours.
SFO Shuttle.
$20, 15-50 min to your selected address. Preset schedules.(**)
Bart light rail public train (metro).
$10. 60 min to bart station downtown SF. Until midnight.
More public transportation options:
https://www.flysfo.com/and-public-transportation-options