In recent years, the localization for capsule endoscopy applications using ultrawideband (UWB) technology has become an attractive field of investigation due to its potential benefits for patients. The literature concerning performance analysis of radio frequency-based localization techniques for in-body applications at UWB frequencies is very limited. Available studies mainly rely on finite-difference time-domain simulations, using digital human models and on experimental measurements by means of homogeneous phantoms. Nevertheless, no realistic analysis based on multilayer phantom measurements or through in vivo experiment has been reported yet. This paper investigates the performance of the received signal strength-based approach for 2-D and 3-D localizations in the UWB frequency band. For 2-D localization, experimental laboratory measurements using a two-layer phantom-based setup have been conducted. For 3-D localization, data from a recently conducted in vivo experiment have been used. Localization accuracy using path loss models, under ideal and non-ideal channel estimation assumptions, is compared. Results show that, under nonideal channel assumption, the relative localization error slightly increases for the 2-D case but not for the in vivo 3-D case. Impact of receivers selection on the localization accuracy has also been investigated for both 2-D and 3-D cases.