Divide your array wattage by battery voltage, then multiply by 1.25. A 1,200W array on a 24V battery bank draws 1,200 ÷ 24 = 50 amps of charging current; applying the NEC's 1.25 continuous-current factor gives 62.5 amps, so you would choose a standard 80A controller. The calculator above returns the minimum current, the 1.25-factored size, and the next standard controller rating — for both MPPT and PWM types.
A charge controller sits between the panels and the battery, regulating voltage and current so the bank charges safely and never overcharges. Undersize it and it will overheat, current-limit, or shut down on sunny days, wasting the solar you paid for. The single most important sizing rule is to base the current on battery voltage, not panel voltage — an MPPT controller converts the panels' higher voltage into extra charging amps at the battery.