Porter played only nine games this season before undergoing back surgery, and he was originally expected to miss the remainder of the season.
Porter becomes the fourth member of the 2018 draft class to sign a max rookie extension with the super-max provision.
The deal will keep Gordon in a Nuggets uniform through 2026, though it includes a player option for the 2025-26 season.