Adjust oven rack to lowest setting and preheat oven to 400 degrees.
Toss potatoes with oil, rosemary, and garlic.
Spread potatoes in a single layer on a rimmed baking sheet and season with salt and pepper.
Roast in preheated oven for 30 minutes, stirring once halfway during cooking.