Abstract This paper investigates the coexistence of multiple attractors in Sprott B system. Two independent chaotic attractors and two independent periodic attractors are numerically found in the system with different parameters and initial values. Multistability is also generated from the Sprott B system by using the sign function. A nonlinear controller is designed for forcing the chaotic motion of Sprott B system to an equilibrium point and enabling the system trajectories to switch between different chaotic attractors. The effectiveness of the controller is illustrated by some numerical experiments.