You have to add 5 dollars at minimum to steam wallet. So it costs 5 bucks.
Players with free accounts can upgrade their account to a premium account by making a purchase of any amount from the Mann Co. Store or by using an Upgrade to Premium Gift traded by another player. Upon completing the purchase or using the Gift, the player's account is immediately upgraded to premium, and all previously-imposed restrictions are removed.