How many points do you need to win a set?
25 points, with at least a 2-point lead. The deciding 5th set goes to 15, also by 2.
There is no cap: at 24–24 play continues until one team leads by two (26–24, 27–25 … 35–33). Very long sets are rare but do happen in close international matches.
Some youth, school and recreational competitions use shorter sets (for example to 21 or 15) or put a cap on the score to keep matches on time, so check your league’s format. Beach volleyball sets go to 21, with a third set to 15.