Typically up to the lesser 25% of net income or $18,000. The worksheet will tell you exactly how much can be deducted.
Find the following worksheet:
Self-Employment Retirement Plan Worksheet
SOURCE:
https://www.irs.gov/publications/p560/ch05.html