Extremely position dependent.
On average, I'd say it is worth less than a pawn to be able to castle kingside and even less to be able to castle queenside.
But - again - extremely position dependent. Same thing with tempi - what do they say, that a pawn is worth two tempi? I used to think, back when I would blunder a pawn in the opening, I'd think "how can I somehow get two tempi for this guy". It just doesn't work that way. For a pawn, it is only worth it if you can get a lasting initiative, or trap the opponent's king in the center while opening the position up or something.
It isn't actually worth that much, I have seen some professionalgames where no one has castled !
What extremely high percentage of the time do masters castle and what lesson
do we take from that?