From Brotato Wiki

Iframes

Iframes, or Invulnerability Frames, are a duration of time after taking damage, where you cannot take damage again. This is what prevents you being hit more than once when you walk into an enemy.


The Iframe Duration has a minimum of 0.2s and a maximum of 0.4s.

Iframe Duration = 0.4s * (percentage of Max HP taken as Damage)/15%

This means that you get the following Iframes depending on the amount of damage you take:


Dmg Taken % 7.5% or less 8% 9% 10% 11% 12% 13% 14% 15% or more
Iframe Duration 0.20s 0.21s 0.24s 0.27s 0.29s 0.32s 0.35s 0.37s 0.40s

Endless Mode

In Endless Mode Iframes are reduced by the Endless Factor. See the linked page for specific numbers.

In practice, you can be hit about 30 times per second in late Endless Mode, once the Endless Factor has reduced the Iframe duration to its minimum.

Dodge and Tardigrades

Whenever you block damage with Dodge or Tardigrade, you get the minimum Iframe duration, so 0.2 seconds outside of Endless Mode.


Self-Damage

Self-Damage done by Blood Donation, Bloody Hand, or Sick comepletely bypasses Iframes. Taking Self-Damage doesn't trigger Iframes, and you can take Self-Damage while the Iframes are active.