You can have sex as soon as you feel comfortable after a vasectomy but your scrotum may feel tender for a couple of weeks. Some doctors recommend that you wait for a week until the surgery has completely healed before resuming sexual activity.
This is a companion discussion topic for the original article at https://patient.info/news-and-features/having-sex-after-a-vasectomy