If this is for an employer sponsored 401(k) plan, your contributions will be entered on your W-2 in box 12 with a code of D. The contributions are not entered anywhere else on a tax return.
Where does a self-employed person enter the contribution to a Cash Balance plan?
Where to enter your SEP IRA contribution
https://ttlc.intuit.com/community/retirement/help/where-do-i-enter-my-sep-ira-contributions/00/26783
Where to enter Self Employed solo 401K plans
You can contribute to a 401K up to the amount of your Net Profit reduced by 1/2 of the SE tax OR to the max contribution allowed for a 401k whichever is Less.