So actually, carbocation is a molecule in which there is a presence of positive charge on the carbon atom and three bonds attached basically they are the carbon cations.
They are planar in structure as the trivalent Carbon is hybridized.
So, only 6 valence electrons are present on Carbon which are actually used up in the making of sigma bonds, and also the p-orbital that is extending above and below the plane is just unoccupied.
The stability of carbocation depends upon the Inductive effect and the Hyperconjugation effect.
According to the Inductive effect when the electrons in covalent bonds are shifted towards a nearby atom with a higher electronegativity, then the positively charged carbocation will draw in the electron density from the surrounding substituents thereby gaining stabilization.
Also the alkyl groups are more effective at inductively donating electron density than Hydrogen because they are larger and more polarizable and also contain more bonding electrons.
So, the more alkyl groups attached to a carbocation the more would be the inductive effect and so the carbocation becomes stable.
Hyperconjugation is basically an electron donation that occurs from the parallel overlap of the p-orbitals with the adjacent hybridized orbitals participating in the sigma bonds.
So, in this also as the number of alkyl substituents increases, the number of sigma bonds available for hyperconjugation also increases and the carbocation becomes more stable.