Dandruff is a common condition that many people experience. It can cause flakes of dead skin to appear on the scalp and in the hair. When you scratch your scalp, you may notice white stuff under your nails, which is likely dandruff. Another condition that may cause this is seborrheic dermatitis, which is a more severe form of dandruff. It can cause redness, itching, and scaly patches on the scalp.

Dandruff and seborrheic dermatitis are both caused by an overgrowth of a yeast called Malassezia that is naturally present on the scalp. Malassezia feeds on the natural oils produced by the scalp, and when it grows too much, it can cause irritation, inflammation, and flaking. Stress, hormonal changes, cold weather, and certain skin conditions like psoriasis can all contribute to the development of dandruff and seborrheic dermatitis.
Good hygiene is the first step in managing dandruff and seborrheic dermatitis. Wash your hair regularly with a mild shampoo and rinse thoroughly to remove all traces of shampoo. Avoid using hot water, as this can dry out your scalp and make the problem worse. You may want to use a medicated shampoo that contains ingredients like salicylic acid, coal tar, or ketoconazole to help control flaking and reduce the growth of Malassezia.
In addition to good hygiene and medicated shampoos, there are several home remedies you can try to manage dandruff and seborrheic dermatitis. Tea tree oil is one of the most effective remedies, as it has antifungal and antibacterial properties that can help reduce the growth of Malassezia and soothe irritated skin. Dilute a few drops of tea tree oil in a carrier oil like coconut or jojoba oil and massage it into your scalp before washing your hair.
Apple cider vinegar is another home remedy that can help manage dandruff and seborrheic dermatitis. It has a natural acidity that can help rebalance the pH of your scalp and reduce the growth of Malassezia. Mix equal parts of apple cider vinegar and water and apply it to your scalp before washing your hair. Leave it on for a few minutes before rinsing it out.
Incorporating certain foods into your diet can also promote healthy skin and reduce inflammation. Foods like fatty fish, nuts, and leafy greens are rich in omega-3 fatty acids and antioxidants that can help nourish your scalp and reduce inflammation. Avoiding processed foods, sugar, and alcohol may also help reduce inflammation and promote healthy skin.
If your dandruff or seborrheic dermatitis is severe or does not respond to home remedies, you may need to see a dermatologist for prescription-strength treatments. Your dermatologist may prescribe topical creams, oral medications, or light therapy to help reduce inflammation and control the growth of Malassezia.
In conclusion, the white stuff you see under your nails when you scratch your scalp is most likely dandruff or seborrheic dermatitis. These conditions are caused by an overgrowth of a yeast called Malassezia, which feeds on the natural oils produced by your scalp. To manage dandruff and seborrheic dermatitis, maintain good hygiene, use medicated shampoos, and incorporate certain home remedies and foods into your diet. If your symptoms are severe or do not improve with home remedies, seek medical treatment from a dermatologist.