To make the cake in two 9-inch pans, reduce the amount of batter by one third.
To make the cake in three 9-inch pans, increase the amount of batter by one third.
The baking times for alternate sizes may differ, so use the toothpick test to monitor doneness.
Source: Everyday Annie, adapted from Baking Illustrated