If you enter/exit via the same station, BART charges $5.75 (Search for 'excursion' at https://www.bart.gov/guide/faq) unless you talk with a Station Agent.
I've never understood why they charge this fee when it would be possible to get a lower fare by going a station further, exiting, and entering again but I haven't had a problem if I talk with the Station Agent.