Bail is not a fine and it is not a punishment. It is security — a sum the court holds to make sure someone comes back for their case, returnable in full if they do. Everything that feels arbitrary about the process makes more sense once you read it that way: the court is not pricing the alleged offence, it is pricing the risk that the defendant does not turn up.
Most bail amounts are not decided by a judge at all, at least not at first. Every California county publishes a bail schedule — a standing table that pairs charges with amounts, reviewed annually by that county's superior court — and in the hours after a booking the jail generally works straight from it. That is why a family can often learn the amount before anyone has appeared in front of anyone. It also means the first number you hear is a default rather than a ruling, and defaults can move. What a bail bond actually is, and who signs it picks up from the point where the amount exists and somebody has to post it.
Three routes lead out of custody before trial, and they are not equally available. The court can release someone on their own recognizance — no money, just a written promise to appear. Bail can be paid to the court in full, in cash, and returned at the end of the case. Or a licensed bail agent can post the whole amount on the defendant's behalf for a premium, which is what most families use, because most families cannot produce twenty or fifty thousand dollars overnight. What that premium comes to is a page of its own, as is the general FAQ for the questions that do not belong to any single stage.
Fifteen years in Southern California courtrooms and county facilities, under CA Bail License #6015872, is what sits behind the six steps below — Bail Bond Central has watched each of them play out several thousand times. If you are reading this at two in the morning because it has already happened, though, skip the reading: a licensed agent is answering the phone right now, and being walked along the six steps beats studying them.