In the Atacama Desert, the spectral distribution of solar radiation differs from the global standard, showing very high levels of irradiation with a particularly high ultraviolet content. Additionally, the response of photovoltaic (PV) technologies is spectrally dependent, so it is necessary to consider local conditions and type of technology to optimize PV devices since solar cells are usually designed for maximum performance under standard testing conditions (STC). In this work, we determined geometrical and doping parameters to optimize the power of an n-type bifacial passivated emitter and rear totally diffused solar cell (n-PERT). Six parameters (the thicknesses of cell, emitter, and back surface field, as well as doping concentration of emitter, base, and back surface field) were used to optimize the cell under the Atacama Desert spectrum (AM 1.08) and under standard conditions (AM 1.5) through a genetic algorithm. To validate the model, the calculated performance of the n-PERT cell was compared with experimental measurements. Computed and experimental efficiencies showed a relative difference below 1% under STC conditions. Through the optimization process, we found that different geometry and doping concentrations are necessary for cells to be used in the Atacama Desert. Reducing the thickness of all layers and increasing doping can lead to a relative increment of 5.4% in the cell efficiency under AM 1.08. Finally, we show the potential effect of metallization and the viability of reducing the thicknesses of the emitter and the back surface field.