It takes about 45 minutes in the oven to cook sweet potatoes, without cutting them. Place potatoes in the oven at 400F for 45 minutes. Check with a fork to make sure they are soft.