Low dimensional nanostructures have attracted attention due to their rich physical properties and potential applications. The essential factor for their functionality is their electronic properties, which can be modified by quantum confinement. Here the electronic states of Gd atom trapped in open Fe corrals on Ag(111) were studied via scanning tunneling spectroscopy. A single spectroscopic peak above the Fermi level is observed after Gd adatoms are trapped inside Fe corrals, while two peaks appear in empty corrals. The single peak position is close to the higher energy peak of the empty corrals. These findings, attributed to quantum confinement of the corrals and Gd structures trapped inside, are supported by tight-binding calculations. As a result, this demonstrates and provides insights into atom trapping in open corrals of various diameters, giving an alternative approach to modify the properties of nano-objects.