Several traditions independently arrive at the idea that virtue lies in a balanced middle point between two extremes, though each grounds that balance differently. In the Nicomachean Ethics, Aristotle argues that moral virtue is a mean relative to us, situated between a vice of excess and a vice of deficiency — courage, for example, is the mean between recklessness and cowardice, and generosity is the mean between wastefulness and stinginess. The mean isn't a mathematical midpoint but the appropriate response for a given person in a given situation, found through practical wisdom (phronesis). In early Buddhist teaching, the Buddha describes his path as the Middle Way (majjhima patipada) in his first sermon, the Dhammacakkappavattana Sutta, rejecting both self-indulgence and severe self-mortification as extremes that fail to lead to liberation; the Middle Way instead names the Noble Eightfold Path itself, aimed at ending suffering rather than optimizing character traits. Confucian thought offers a third version in the Doctrine of the Mean (Zhongyong), traditionally attributed to Confucius's grandson Zisi, which treats equilibrium and harmony (zhong and he) as the root from which all right action grows, tightly linked to benevolence (ren) and social propriety. The traditions converge on distrust of extremes but diverge sharply on what the mean is for: Aristotle's is about cultivating stable character for a flourishing life (eudaimonia), the Buddhist Middle Way is a strategy for ending suffering, and the Confucian mean is about sustaining social and cosmic harmony. Moderation, in other words, is a shared method aimed at three different goals.
Source: Aristotle, Nicomachean Ethics, Book II; Dhammacakkappavattana Sutta (Samyutta Nikaya 56.11); Zisi, Doctrine of the Mean (Zhongyong)