What can I do for a painfull finger nail?

See dermatologist. Who can figure out why it is hurting. Is it infected? Ingrown? They would likely prescribe an antibiotic if infected and if ingrown might have to remove a piece of it (which will grown back).