WAR is pretty complex but basically the gist of it is you take all three aspects of hitting, fielding, and running and try to put it in one single number for how much a player is worth or what value they contribute. There’s about a 1,000 Wins (also what you can call WAR) available
There are currently 1,000 WAR per season based on a replacement level of a .294 winning percentage. Of those 1,000, 570 WAR are allocated to position players and 430 WAR are allocated to pitchers. You can learn more about the split here.
For hitters: WAR = (Batting Runs + Base Running Runs +Fielding Runs + Positional Adjustment + League Adjustment +Replacement Runs) / (Runs Per Win)
For pitchers= ● Pitchers – While position player WAR is based on Batting Runs and Fielding Runs, pitching WAR uses FIP (with infield fly balls), adjusted for park, and scaled to how many innings the pitcher threw. FIP is translated into runs, converted to represent value above replacement level, and is then converted from runs to wins. This is a slightly more complicated process than for position players, so you should click over to the pitcher WAR page if you want the details.