Why does my dog do that?
Why does my dog rub against my legs?
Last updated 23 September 2026 · How we write and check this
Short answer
Rubbing against your legs blends affection with a light form of scent marking, since glands along a dog's cheeks, flanks, and tail base leave a faint trace of scent on anything they brush against. It is a normal, friendly greeting behavior that increases when you have just come home or when other people or animals have recently visited.
A friendly, scent based greeting
Similar to how cats are well known for scent marking with a head rub, dogs do a quieter version of the same thing, brushing their flank or shoulder against your legs to leave a light trace of their own scent while also enjoying close contact. This tends to happen most right after a reunion, when a dog seems especially keen to reestablish closeness.
More rubbing after new smells arrive
Many owners notice their dog rubs against them more after they have been somewhere with unfamiliar animals or people, which likely reflects a dog reclaiming its person's scent as familiar again after picking up on the new smells carried home on clothing and skin.
Nothing to change here
This behavior needs no correction, since it is simply an affectionate, low key way dogs maintain social bonds, distinct from more insistent behaviors like jumping or pawing.
Key takeaways
- Leg rubbing combines affection with light scent marking from facial and flank glands.
- It commonly increases right after a reunion with you.
- Unfamiliar scents brought home can prompt extra rubbing as a dog reclaims familiarity.
- The behavior is a normal, harmless social bonding gesture that needs no correction.