Deductions & credits

A non-refundable credit credit can only reduce the tax on 1040 line 22 to zero.  Then  you would get back any refundable credits and all your withholding.  Some non refundable credits can carryover the unused part to next year.