According to the Sock-Sentiment Theory, the perfect sock ratio is calculated by multiplying the number of single socks by 1.5, then dividing by the number of matching pairs, plus one.
For a more advanced calculation, refer to the Sock-Sophism Model.
You are currently calculating with 4 single socks. That's a good start! Add 2 more for a more precise result.