It's not how much material I'm down. It's when I no longer have the will to play on. When my ego has been crushed and I want to escape the torture of seeing my dreams of victory (or at least drawing) shattered.
How do you know when to resign?
I'd resign when my position is bad enough that I feel that a draw is impossible to achieve. When material is going to be lost, you need to try and maximize your compensation (material and other positional considerations) and counterplay. If you can gain enough counterplay (A great attack, shutting down your opponents activity, etc.), you should have enough compensation to draw or win the game.


You know when to resign when something more important than that game comes up. It could be after one move, it could be after a hundred. Knowing when to resign has nothing to do with how many pieces you have on the board.
When you see your opponent is playing a forced sequence that leads to a mate or to a position in which you have no chances to even draw

When ever I am down at least two pawns or a piece, especially in OTB classical tournaments. There is no point struggling in a lost position for 4 hours when you could be relaxing and drinking coffee.
+1
The problem is that many chess players (especially beginners) are not skilled enough to see when they are already lost; I think this is what the original poster is asking about. The short answer is "whenever you feel like the game is lost for you." A beginner might not resign until losing many points of material, or seeing an unstoppable mate in 2 or something. A stronger chess player may resign over a lost piece and a GM may resign over just a pawn lost without compensation. This makes sense because a GM versus another GM probably won't comeback from a lost edge (even if slight), but a beginner versus a beginner has many chances for each side to blunder, so playing on against them is logical.
Sometimes when I'm losing I play some 'testing' moves to see if my opponent knows how to convert the position to a win; if they demonstrate that they know what I am looking for, then I resign then and there. If they are shuffling or playing inaccurate moves, whoo, I love it; you can bet I'm going to begin my comeback from a losing position into a win!

When you have a turtle head popping out.
When your wife yells, "Are you still playing that game? We were supposed to leave 20 mins ago."
When you're sitting in the family's church pew and your priest clears his throat and looks you dead in the eye.
When your cat jumps onto the computer desk demanding to be loved and it steps on your mouse causing you to blunder.
When you set the oven timer for 30 mins an hour and a half ago and the fire dept is beating on your door cause black smoke is rolling out your kitchen window.

It depends on the board. If your down a piece and 10 moves later, your opponent forces you to lose another piece, it's highly unlikely your opponent will blunder the game away, or launch a risky attack.

I recently had someone resign after 10 moves, normally I would not want to quit that early, how much down in material should you admit defeat?
You name it, I have resigned because of it.
I have resigned in winning positions, losing positions, even positions, lunch, dinner, playoffs.
Been there, done that! 🤣
I recently had someone resign after 10 moves, normally I would not want to quit that early, how much down in material should you admit defeat?
White to move. Would you resign as White in these position?

None of those
You can resign when your position is "hopeless" and you cannot foresee yourself recovering from it. (There are some exceptions, e.g. it is nice to allow your opponent a pretty checkmate)
I recently had someone resign after 10 moves, normally I would not want to quit that early, how much down in material should you admit defeat?