You can take a BART train from the airport to the Powell St. station, which is located just a few blocks from Union Square. The trip takes approximately 30 minutes and trains run every 15 minutes during peak hours. The cost of a one-way ticket from SFO to Powell St. is $9.65.