Preheat your oven to 400°F (200°C). Lightly grease an 8×11-inch or 9×13-inch metal baking pan with a small pat of butter.
Scrub the potatoes well and cut them into roughly 1-inch chunks so they cook evenly. Leave the skins on if desired for extra texture and convenience.
Slice the onions into thick half-moons, about ½-inch thick, so they hold up during roasting without burning.
Add the potato chunks and onion slices to the prepared baking pan, spreading them into an even layer. Avoid overcrowding so the vegetables roast instead of steam.
Drizzle the melted butter evenly over the potatoes and onions, then sprinkle with kosher salt.
Toss everything together directly in the pan until all pieces are lightly coated with butter and seasoning.
Spread the mixture back into an even layer, tucking some onion slices between the potatoes to encourage even caramelization.
Place the pan on the middle rack of the oven and bake for 25 minutes without stirring, allowing the potatoes to begin browning and the onions to soften.
Carefully remove the pan and toss everything well, scraping up any golden bits from the bottom.
Return the pan to the oven and continue roasting for another 20–30 minutes, stirring once or twice during cooking.
Roast until the potatoes are fork-tender, deeply golden around the edges, and the onions are soft and caramelized. Total roasting time will be approximately 45–55 minutes.
Taste and adjust with additional salt if needed. Serve hot, making sure to spoon up the caramelized onions and buttery drippings from the bottom of the pan.