Quick answer
What are the signs that nifās has ended?
Nifās has ended when a sign of purity appears: the qaṣṣah bayḍāʾ (a clear or white discharge) or complete dryness. Once observed before your school’s maximum, ghusl becomes obligatory and worship resumes.
The signs that nifās has ended are the same two signs of purity that end ḥayḍ: the qaṣṣah bayḍāʾ — a clear or white discharge resembling plain water — or complete dryness, confirmed by a kursuf (cotton) check showing no trace of color.
Either sign is sufficient. Once you observe purity, your nifās is over even if your school’s maximum has not been reached. You perform ghusl and resume prayer, fasting, recitation, ṭawāf, and intimacy.
Light brown or yellow discharge that appears after a clear sign of purity is generally not counted as nifās, drawing on the same principle as Umm ʿAṭiyyah's report regarding discharge after the time of purity. If genuine bleeding returns, the schools treat it differently depending on the clean gap and how days are counted, so personal guidance is advised.
If bleeding continues without a break to your school’s maximum — 40 days for Hanafi and Hanbali, 60 for Shafiʿi and Maliki — nifās ends by that maximum: perform ghusl and resume worship. Further bleeding is generally istiḥāḍah, though some schools refer it to her known habit. When bleeding was interrupted, the count can differ (the Maliki school adds together the days of bleeding), so ask a trusted scholar. Noor helps you recognize these signs and shows when your school’s maximum is reached.
This summary draws on the established positions of the four Sunni madhhabs. For your specific situation, consult a qualified scholar.