MFLGuía

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

Positionpassingshootingdefensedribblingpacephysical
GKThe goalkeeping stat
RB0.19–0.440.170.100.10
LB0.19–0.440.170.100.10
RWB0.19–0.440.170.100.10
LWB0.19–0.440.170.100.10
CB0.05–0.640.090.020.20
CDM0.28–0.400.17–0.15
CM0.430.120.100.29–0.06
RM0.430.120.100.29–0.06
LM0.430.120.100.29–0.06
CAM0.340.21–0.380.07–
RW0.240.23–0.400.13–
LW0.240.23–0.400.13–
CF0.240.23–0.400.13–
ST0.100.46–0.290.100.05

Calculator

Overall at RB
86
Played overall at RB
86no penalty
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.