An exact numerical solution has been derived for a finite system of six spins to investigate the frustration in the Ising, the $\mathrm{XY}$, and the Heisenberg models. Quantum effects on frustration have been studied by analyzing the susceptibility, correlation functions, and misfit parameter. For a quantum system, frustration is suppressed and the frustration conditions depend on the local structure.