Will factory reset erase Android data completely?

I need to sell my old Android phone online but i need to wipe my Android completely, i i'm wondering if factory reset can erase Android data completely without recovery? please advise!