Per IRS Publication 575 Pension and Annuity Income, page 6:
Insurance Premiums for Retired Public Safety Officers
If you are an eligible retired public safety officer (law enforcement officer, firefighter, chaplain, or member of a rescue squad or ambulance crew), you can elect to exclude from income distributions made from your eligible retirement plan that are used to pay the premiums for accident or health insurance or long-term care insurance. The premiums can be for coverage for you, your spouse, or dependents. The distribution must be made directly from the plan to the insurance provider. You can exclude from income the smaller of the amount of the insurance premiums or $3,000. You can only make this election for amounts that would otherwise be included in your income. The amount excluded from your income can't be used to claim a medical expense deduction.
An eligible retirement plan is a governmental plan that is:
If you make this election, reduce the otherwise taxable amount of your pension or annuity by the amount excluded. The amount shown in box 2a of Form 1099-R doesn't reflect this exclusion. Report your total distributions on Form 1040 or 1040-SR, line 4c; or Form 1040-NR, line 17a. Report the taxable amount on Form 1040 or 1040-SR, line 4d; or Form 1040-NR, line 17b. Enter "PSO" next to the appropriate line on which you report the taxable amount.
If you are retired on disability and reporting your disability pension on Form 1040 or 1040-SR, line 1; or Form 1040-NR, line 8, include only the taxable amount on that line and enter "PSO" and the amount excluded on the dotted line next to the applicable line.
In TaxAct, there is a checkbox on Form 1099-R and within the Q&A interview to indicate if the Form 1099-R distribution was used by an eligible retired public safety officer (PSO) to pay premiums for accident or health insurance or long-term care insurance. The amount entered here will reduce the taxable amount on Form 1040, Line 4d and "PSO" will print as instructed by the IRS.
To enter this in the TaxAct program:
Note that any link in the information above is updated each year automatically and will take you to the most recent IRS version of the document at the time it is accessed.