Gather the ingredients.
Mix sugar, butter, milk, cocoa, and salt together in a saucepan over medium-high heat. Boil for 1 minute.
Stir in oats, peanut butter, and vanilla. Drop by tablespoonfuls onto waxed paper. Allow to cool and harden, 30 to 45 minutes.
