Cost basis

If I do not enter a cost basis for stocks I sold I get a refund which is a credit for my premiums paid to health care marketplace. If  I enter a cost basis it lowers my actual income, but completley wipes out my credit/refund for healthcare premiums. Why is this?