How to cook a whole pumpkin in the oven. You just buy a smaller pumpkin (the big ones ARE edible, but don’t taste very good), rub it with some olive oil (or coconut oil!) and put it in the oven at 400 degrees for around an hour to an hour and a half. (I put mine on a cookie sheet that was covered in aluminum foil to cook.)