When a toenail is ingrown, the nail is curved downward and grows into the skin, usually at the nail borders. This irritates the skin, often creating pain, redness, swelling, and warmth of the toe. Nail fungus may cause your nail to discolor, thicken and crumble at the edge. If your nail fungus is painful and has caused thickened nails, self-care steps and medications may help.