You just know. You're comfortable with the idea, you trust your partner, you're ready to consent, etc. You're ready when you're able to talk about sex in an mature way, and you know the risks. You need to know what you're going to do to prevent pregnancy and contracting STIs, and you need to be ready to deal with the situation if something goes wrong