The seller pays — and the clock starts before the sale
When you sell a car in California, you must give the buyer a valid smog certification, and it must be dated within 90 days before the transfer. That timing detail is where sellers waste money: test too early and the certificate expires before a slow buyer commits; test after you have a buyer and a failure leaves them waiting while you decide about repairs. The practical move is to test once the car is genuinely ready to list, then price and advertise with the certificate already in hand.
All of Orange County is in the enhanced Smog Check program, which is the stricter testing tier. A car that passed easily years ago in another program area still faces the enhanced test here in Santa Ana, Garden Grove, or anywhere else in the county. Budget for the possibility of a failure on any older car, and read our page on selling a car that failed smog before you book if the check-engine light has been a recent guest.