A plan, or the employer contribution under one, that can allow discretionary employer contributions: the amount isn't fixed, and the employer may contribute nothing in a given year, though the plan needs a definite formula for allocating what it does contribute. In a Solo 401k, the IRS calls the employer side a nonelective contribution.[1][2]
The Nonelective Contribution can be up to 25% of Compensation for an S Corporation owner. For a sole proprietor, the same 25% plan rate works out to 20% of net earnings from self-employment, figured after the deduction for half of self-employment tax and without deducting the contribution itself.[1][2][3]
For the full explanation, see Solo 401k Contribution Limits (All Years).