If a creature with trample is blocked, it can deal the damage left over after killing its blockers to the player or planeswalker it attacked.
Keyword glossary › Trample
Without trample, a blocked attacker deals all of its damage to the creatures blocking it, even if a blocker has 1 toughness and the attacker has 10 power. The extra damage is wasted. Trample fixes that.
When a creature with trample is blocked, its controller assigns lethal damage to each blocker first. “Lethal” means enough to destroy it, counting damage already marked on it this turn. Whatever power is left over can be assigned to the player or planeswalker being attacked.
If a trampler is blocked and every blocker then leaves the battlefield before damage, all of its damage goes to the player. A creature without trample in the same spot deals no damage at all.
Attack into a 2/2 chump blocker with a 6/6 trampler, then with a 4/4 that has no trample. Step through it, or press Play all.


Before combat
You control Balamb T-Rexaur, a 6/6 with trample. Your opponent controls Coeurl, a 2/2.
These are real Magic cards. The example only covers the abilities that matter to it.
Real cards with trample. Look any of them up in the card search to compare every printing's price.