Santa Rita is a landlocked municipality in the coastal province of Pampanga.
The municipality has a land area of 29.76 square kilometers or 11.49 square miles which constitutes 1.49% of Pampanga's total area. Its population as determined by the 2020 Census was 48,209. This represented 1.98% of the total population of Pampanga province, or 0.39% of the overall population of the Central Luzon region. Based on these figures, the population density is computed at 1,620 inhabitants per square kilometer or 4,196 inhabitants per square mile.