There are a few reasons for this symptom of yours which will need proper history taking & few investigations.
Next Steps
if there is heavy bleeding you should rush to nearby hospital emergency.
Otherwise consult me on practo app to guide you further
Health Tips
keep a track on the color & amount of blood & no of times there is blood in your stool, also stay hydrated & maintain your diet