In this paper, we theoretically investigate all-optical logical gates based on the pump-induced resonant nonlinearity in an erbium-doped fiber coupler. The resonant nonlinearity yielded by the optical transitions between the (4)I(15/2) states and (4)I(13/2) states in Er(3+) induces the refractive index to change, which leads to switching between two output ports. First, we do a study on the switching performance, and calculate the extinction ratio (Xratio) of the device. Second, using the Xratio, we obtain the truth tables of the device. The results reveal that compared with other undoped nonlinear couplers, the erbium-doped fiber coupler can drop the switching threshold power. We also obtain different logic gates and logic operations in the cases of the same phase and different phase of two initial signals by changing the pump power.