In a stand mixer fitted with the paddle attachment, or using a large bowl and an electric mixer, combine the cream cheese, butter, and vanilla on medium-high to high speed until smooth.
Turn the speed down to low and add the salt and sugar in 3-4 batches, then turn the speed back up to high and mix until the frosting is smooth.
Use immediately or store in an airtight container in the refrigerator for two weeks (possibly longer).
Notes
This recipe is the perfect consistency for frosting a cake. For piping cupcakes with stiff peaks, add an additional 1/2 to 1 cup of confectioners’ sugar.
For chocolate cream cheese frosting: sift 1/2 cup unsweetened cocoa powder (either dutch-processed or natural will work) together with the sugar, and add them to the recipe together.