Matthew 7:12 is Jesus’s summary of how to treat other people: treat them the way you would want to be treated. Jesus gives this as the short form of everything the Law and the Prophets teach about relationships. It comes near the end of the Sermon on the Mount, where Jesus speaks to his disciples and to the crowds gathered on the hillside in Galilee.
Therefore whatever you desire for men to do to you, you shall also do to them; for this is the law and the prophets.
Matthew 7:12 (WEB)
What Matthew 7:12 Means
The phrase “whatever you desire for men to do to you” asks you to start with your own honest wants. You already know how you hope others will treat you: with patience, honesty, fairness, and kindness. The verse asks you to turn that knowledge outward and act on it first, rather than waiting for others to go first.
“You shall also do to them” makes the rule active. It is not enough to avoid harming people or to feel sympathy for them. The verse calls for deliberate action on their behalf. “For this is the law and the prophets” tells you that Jesus sees this principle as the center of God’s revealed will, not a minor add-on to it.
The verse does not promise that others will always return your kindness, and it does not say that treating people well will make life easy. It describes what faithful love looks like in ordinary dealings, leaving the outcomes to God.
The Context of Matthew 7:12
The Gospel of Matthew was written to a community that knew the Jewish Scriptures well, and it repeatedly shows Jesus as the one who fulfills and interprets the Law. Traditionally, the book is attributed to Matthew, one of the twelve apostles, though the author never names himself in the text. The Sermon on the Mount in chapters 5 through 7 presents Jesus as a teacher who explains what righteousness looks like from the inside out.
Just before verse 12, Jesus says that your Father in heaven gives good things to those who ask him, more than an earthly parent gives to a child. That promise shapes how the Golden Rule should be read. Because God is generous toward you, you can be generous toward others, and the rule flows from receiving God’s goodness rather than from earning it. Just after verse 12, Jesus speaks of the narrow gate and the wide road, which turns the rule toward the seriousness of choosing the way of life he describes.
Key Phrases in Matthew 7:12
Leviticus 19:18
“‘You shall not take vengeance, nor bear any grudge against the children of your people; but you shall love your neighbor as yourself. I am the LORD.
(WEB)
This verse in the Law calls for loving your neighbor as yourself, which is the root of the same concern for others that Jesus states in Matthew 7:12. Reading them together shows that the Golden Rule grows out of the command to love.
Luke 6:31
“As you would like people to do to you, do exactly so to them.
(WEB)
Luke records a parallel form of this teaching in the Sermon on the Plain. Seeing the same instruction in another Gospel helps you recognize it as a central part of Jesus’s teaching rather than a single remark.
A Short Prayer From Matthew 7:12
Father, you have been generous to me in ways I did not earn, and you know the wants and fears that I carry into each day. Teach me to notice what I long for from others and to offer the same to them, even when it costs me something. When I am tempted to treat people as obstacles or as means to my own ends, bring this command back to my mind. Make my kindness steady and sincere, shaped by your goodness rather than by my mood. Amen.