2 to 3 hours is recommended for a connecting flight to JFK. It is better if you can aim for at least 3 hours.