User blog:ZoshiX/RPG Formula Sandbox

chance of defender being hit = 1 / (AGIdefender/DEXattacker)^(1/x)

This formula is designed to create a hit chance that reflects the ratio between attacker and defender stats, regardless of how small or large those numbers may actually be. The value X can be adjusted to balance as needed - making X smaller will cause differences in stats to have more impact on the hit chance, and making it larger will do the opposite.

Note that the chance of hit can exceed 100% - this means that the attacker's hit chance is improved upon from the base they started with depending on the ability used and any status effects present. For example, if Attacker has a 110% hit chance on Defender based on their stats, and is using an ability that has a 75% base chance to hit, the odds of the ability connecting are (0.75*1.25) = 82.5%.