Meanwhile, all three group 13 metals examined should have low formation energies for ptype substitution, although they are significantly deeper and more polaronic in nature. K and In are the two species identified as most worthy of further experimental investigation, with In-doped BaSnO 3 the most promising candidate for achieving maximum hole density within an all-perovskite, transparent p-n junction.