Overall Rating
A player's overall depends on the position he plays. For an outfield position, it is a weighted sum of his six outfield stats, rounded to the nearest integer. For a goalkeeper, it is his goalkeeping stat.
The overall the API returns (player.metadata.overall) is the one at the player's primary position, the first of player.metadata.positions. The same stats give a different overall at another position: a player has one for each.
Coefficients
| Position | passing | shooting | defense | dribbling | pace | physical |
|---|---|---|---|---|---|---|
| GK | The goalkeeping stat | |||||
| RB | 0.19 | – | 0.44 | 0.17 | 0.10 | 0.10 |
| LB | 0.19 | – | 0.44 | 0.17 | 0.10 | 0.10 |
| RWB | 0.19 | – | 0.44 | 0.17 | 0.10 | 0.10 |
| LWB | 0.19 | – | 0.44 | 0.17 | 0.10 | 0.10 |
| CB | 0.05 | – | 0.64 | 0.09 | 0.02 | 0.20 |
| CDM | 0.28 | – | 0.40 | 0.17 | – | 0.15 |
| CM | 0.43 | 0.12 | 0.10 | 0.29 | – | 0.06 |
| RM | 0.43 | 0.12 | 0.10 | 0.29 | – | 0.06 |
| LM | 0.43 | 0.12 | 0.10 | 0.29 | – | 0.06 |
| CAM | 0.34 | 0.21 | – | 0.38 | 0.07 | – |
| RW | 0.24 | 0.23 | – | 0.40 | 0.13 | – |
| LW | 0.24 | 0.23 | – | 0.40 | 0.13 | – |
| CF | 0.24 | 0.23 | – | 0.40 | 0.13 | – |
| ST | 0.10 | 0.46 | – | 0.29 | 0.10 | 0.05 |
overall.ts
// MFL overall rating: a player's overall at a given position.
// Outfield positions: weighted sum of the six outfield stats, rounded to the nearest integer.
// Goalkeepers: the goalkeeping stat.
// Source of truth: mfl-player-progression (OverallCoeffsConfig, computeCurrentOverallFromStat).
export type Position =
| 'GK'
| 'RB'
| 'LB'
| 'RWB'
| 'LWB'
| 'CB'
| 'CDM'
| 'CM'
| 'RM'
| 'LM'
| 'CAM'
| 'RW'
| 'LW'
| 'CF'
| 'ST'
export type OutfieldPosition = Exclude<Position, 'GK'>
export interface PlayerStats {
pace: number
shooting: number
passing: number
dribbling: number
defense: number
physical: number
goalkeeping: number
}
export type OutfieldStat = Exclude<keyof PlayerStats, 'goalkeeping'>
export const OVERALL_COEFFS: Record<OutfieldPosition, Record<OutfieldStat, number>> = {
RB: { passing: 0.19, shooting: 0, defense: 0.44, dribbling: 0.17, pace: 0.1, physical: 0.1 },
LB: { passing: 0.19, shooting: 0, defense: 0.44, dribbling: 0.17, pace: 0.1, physical: 0.1 },
RWB: { passing: 0.19, shooting: 0, defense: 0.44, dribbling: 0.17, pace: 0.1, physical: 0.1 },
LWB: { passing: 0.19, shooting: 0, defense: 0.44, dribbling: 0.17, pace: 0.1, physical: 0.1 },
CB: { passing: 0.05, shooting: 0, defense: 0.64, dribbling: 0.09, pace: 0.02, physical: 0.2 },
CDM: { passing: 0.28, shooting: 0, defense: 0.4, dribbling: 0.17, pace: 0, physical: 0.15 },
CM: { passing: 0.43, shooting: 0.12, defense: 0.1, dribbling: 0.29, pace: 0, physical: 0.06 },
RM: { passing: 0.43, shooting: 0.12, defense: 0.1, dribbling: 0.29, pace: 0, physical: 0.06 },
LM: { passing: 0.43, shooting: 0.12, defense: 0.1, dribbling: 0.29, pace: 0, physical: 0.06 },
CAM: { passing: 0.34, shooting: 0.21, defense: 0, dribbling: 0.38, pace: 0.07, physical: 0 },
RW: { passing: 0.24, shooting: 0.23, defense: 0, dribbling: 0.4, pace: 0.13, physical: 0 },
LW: { passing: 0.24, shooting: 0.23, defense: 0, dribbling: 0.4, pace: 0.13, physical: 0 },
CF: { passing: 0.24, shooting: 0.23, defense: 0, dribbling: 0.4, pace: 0.13, physical: 0 },
ST: { passing: 0.1, shooting: 0.46, defense: 0, dribbling: 0.29, pace: 0.1, physical: 0.05 },
}
export function computeOverall(position: Position, stats: PlayerStats): number {
if (position === 'GK') return stats.goalkeeping
const c = OVERALL_COEFFS[position]
return Math.round(
stats.pace * c.pace +
stats.defense * c.defense +
stats.shooting * c.shooting +
stats.passing * c.passing +
stats.physical * c.physical +
stats.dribbling * c.dribbling,
)
}
Worked example
A right back with passing 90, shooting 31, defense 86, dribbling 81, pace 88 and physical 87:
0.19×90 + 0×31 + 0.44×86 + 0.17×81 + 0.10×88 + 0.10×87 = 86.21 → 86
Away from his positions, a starter also loses some overall: see Out-of-Position Penalty.
Building with an AI assistant? Point it to guide.playmfl.com/llms.txt.
