Synapses are specialized communication points between neurons, and their number is a major determinant of cognitive abilities. These dynamic structures undergo developmental- and activity-dependent changes. During brain aging and certain diseases, synapses are gradually lost, causing mental decline. It is, thus, critical to identify the molecular mechanisms controlling synapse number. We show here that the levels of phosphoinositide 3 kinase (PI3K) regulate synapse number in both Drosophila larval motor neurons and adult brain projection neurons. The supernumerary synapses induced by PI3K overexpression are functional and elicit changes in behavior. Remarkably, PI3K activation induces synaptogenesis in aged adult neurons as well. We demonstrate that persistent PI3K activity is necessary for synapse maintenance. We also report that PI3K controls the expression and localization of synaptic markers in human neuroblastoma cells, suggesting that PI3K synaptogenic activity is conserved in humans. Thus, we propose that PI3K stimulation can be applied to prevent or delay synapse loss in normal aging and in neurological disorders.