To swap one cake pan for another, match them by area (which stands in for batter volume): a round pan's area is π × radius², a square's is side × side, and you want the new pan's area close to the original's. Fill any pan about halfway to two-thirds, and adjust the baking time — a larger or deeper pan bakes differently — checking with a skewer.
Step
Do
Why
Find area
Round: π×r²; square: side×side
Area stands in for batter volume
Compare
Match the new pan's area to the recipe's
Keeps the batter at the right depth
Scale
Adjust batter by the ratio; fill 1/2–2/3
Right amount, with room to rise
Bake time
Shallower bakes faster, deeper slower — use a skewer