Kind of Lost Kind of Lost · OR Tools · NBA Lineup Optimizer · Support

NBA Lineup Optimizer

Upload your DraftKings, FanDuel or Yahoo player list, set your exposure and diversity rules, and generate up to 150 lineups — ready to upload back. Free tool by kindoflost.

1 · Site & player pool

No file needed: loads a real past DraftKings NBA slate (November 13, 2026) and builds 5 lineups.
📥 Drop the player list CSV here, or browse
DK: the player pool export · FD: the players-list CSV · Yahoo: the player export (or the contest's CSV template)
📈 Drop projections here, or browse
Columns: an id column + a projection column. Matched by player ID.

What is this NBA DFS lineup optimizer?

A free NBA DFS optimizer for DraftKings, FanDuel and Yahoo — no signup, no paywall, no “3 free lineups” teaser. It solves a real mixed-integer program (the same math the paid tools use) to build a set of lineups that are individually strong and collectively different, because in large tournaments one good lineup is easy — twenty different good ones is the hard part.

How it works

  1. Export the player list from DraftKings, FanDuel or Yahoo and upload it above.
  2. Trim the pool: lock, exclude, or cap exposure on any player, and overwrite projections.
  3. Set the rules — team limits, how often one player may appear, and how different each lineup must be from the rest.
  4. Generate up to 150 lineups. You get salary-cap-legal lineups in a CSV formatted for direct re-upload to the site.

A worked example

A DraftKings classic NBA roster has eight slots — PG, SG, SF, PF, C, a guard slot (PG or SG), a forward slot (SF or PF) and a UTIL that takes anyone — under a $50,000 cap, with players from at least two games. A FanDuel roster has nine slots, and the slots depend on the contest: the optimizer reads them from the file you upload. Under the hood that is a knapsack problem: maximize projected points subject to the cap and the position rules. A player listed at two positions can fill either, and the solver assigns him wherever it helps.

Common questions

Is it really free? Yes — it is a working demo of optimization models I have built for 20+ years. No account, no lineup limit tricks.

Which sites does it support? DraftKings, FanDuel and Yahoo, classic full-slate contests only, each with upload-ready CSV output. Pick the site in step 1; the rules below are applied for you.

IDs belong to one slate, so always load the file for the slate you are entering.

Why no stacking? In baseball and hockey the rules create players whose points rise and fall together, so stacking them is a real edge. NBA teammates are only weakly correlated, so this tool leaves the choice to the projections and the exposure caps.

What about Showdown / single-game contests? Not yet — this is classic full-slate only.

Are the projections any good? Unless you upload your own, the tool uses the site's own number from your file — DraftKings' AvgPointsPerGame or FanDuel's FPPG. That is a season average of actual fantasy points, not a forecast for tonight: it knows nothing about the matchup, minutes, or an injured teammate, and early in the season it rests on a handful of games (a player with one big game can look like a bargain). Upload a projections CSV (or overwrite numbers in the list) and those replace it. The optimizer’s job is squeezing the most out of whatever numbers you trust.

How do I use the Vegas lines? Load your file, then press Load Vegas lines in step 2. Each team gets an Impl number — the points Vegas expects it to score, from the game total and the spread. Sort the list by Impl to see the slate from the top down. NBA has no stacking, so the lines are used one way only: in step 3 → Tier 2 → Vegas rules, tick Scale projections by Vegas. It is off by default. When on, each player’s projection is multiplied by his team’s implied points divided by the slate’s average implied points, and a team with no line is left unscaled. The scaling is a guess for NBA and has not been validated. It does not change the blue checkboxes or the Proj column in your pool; the lineup projections shown do include it.

What does Update injury list do? It checks every player on your slate against ESPN’s injury report. Players listed out, on IR or suspended are unchecked — tick them back if you disagree; day-to-day, questionable and doubtful players just get a badge. Players the site itself lists as Out (DraftKings OUT, FanDuel O) already start switched off when the file loads; Questionable players stay on. Use On/Off by status above the player list to switch a whole status on or off at once.

What does Check late news do? It is the button at the top of step 4, for use after the lineups are built. It asks ESPN’s injury report whether anyone in your lineups has been ruled out since you built them, then lists those players, shows how many of your lineups they are in, highlights those lineups and suggests a replacement for each. It is advice only: nothing is rebuilt and nothing is exported, so you swap the player by hand on the site.

What are saved setups? The Saved setups box at the top of step 3 keeps your rule settings so you can reuse them on any slate: name them and press Save current settings, then Load them later. A setup saves everything in the Rules card — preset, lineup count, team limits, exposure, cooldowns, uniqueness, the group lock numbers and the players in your group, and the star duels you ticked. It does not save the salary cap, tonight’s players, your locks and exclusions, or your typed projections — those change every slate. The Vegas scaling box is saved only while lines are loaded. Loading a setup puts any rule it does not mention back to the page default, so an older setup never leaves newer rules switched on. Setups live in this browser only (nothing is sent anywhere); a different browser or device starts empty. It keeps up to 20, and saving under an existing name replaces it.

Do you have one for baseball, football or hockey? Yes — MLB, NFL and NHL.

Get an email when we ship updates to the NBA optimizer. Low volume, unsubscribe anytime.

Questions people actually ask

The rules are the hard part, not the optimizer. Click any question.

How do roster positions and slots work?
A DraftKings classic NBA roster has eight slots — PG, SG, SF, PF, C, a guard slot (PG or SG), a forward slot (SF or PF) and a UTIL that takes anyone — under a $50,000 cap, with players from at least two games. FanDuel has nine slots, and which ones depends on the contest, so the tool reads them from the file you upload. Yahoo has eight slots — PG, SG, G, SF, PF, F, C and UTIL — under a $200 cap, requires players from at least three different teams and allows at most six from one team. A player listed at two positions can fill either, and the solver seats him wherever it helps. The position buttons in step 2 are the slots of the site you picked.
Do I have to supply anything besides the player file?
No. Upload the DraftKings, FanDuel or Yahoo player export exactly as it downloads and you can build. (For Yahoo, the contest template is recommended: it gives the upload file Yahoo’s full player IDs.) Projections default to the site’s own season average, and you can upload your own or overwrite any number. Update injury list (ESPN) and Load Vegas lines (ESPN, odds by DraftKings) are optional extras in step 2.
What is a star duel?
The top-projected player on each side of a game, paired. The Star duels box in step 3 lists them. A duel you check is used both-or-neither: either both stars are in a lineup or neither is. You can also require a minimum number of checked duels fully in every lineup. In three seasons of NBA box scores, opposing players in the same game were only slightly correlated (about +0.02 when the final margin was 14 points or less; that study did not isolate stars). That is a small effect, not a proven edge, so it is off until you tick something.
What does Group lock do?
You tick the Grp box next to any number of players in step 2 (or add everyone your filter is showing). Every lineup then holds at least the minimum, and at most the maximum, of those players. Blank or 0 for the minimum means no minimum, and blank or 0 for the maximum means no maximum; with both blank or 0 the group does nothing. Locked players who are in the group count toward it. If the minimum cannot be seated given the roster positions, a message under the boxes says so before you build.
What do the team and game limits do?
Max players from one team starts at the site’s own limit where there is one (FanDuel 4, Yahoo 6) and is blank on DraftKings, which has no team limit; you can only lower it. Min teams (1 = no extra rule) spreads the lineup over more teams. Max teams, Min games and Max games are off while blank; a game counts when the lineup holds at least one player from it. If the numbers cannot fit the roster, a warning under the boxes says so.
What does “Min salary used” do?
Every lineup must spend at least that much of the cap. 0 means off, and the solver is free to leave salary unspent. The Cash preset sets it to 95% of the cap.
What does “Min unique players per lineup” mean?
The number of players that must differ between a new lineup and every lineup already built. At 1, each new lineup needs just one new player; higher means more diversity but a harder problem for the solver. The GPP preset uses 3, the Cash preset 1.
Why did I ask for 150 lineups and get fewer?
Almost certainly the clock, not the rules. Each new lineup has to differ from every lineup before it, so the work grows as the set grows and later lineups take longer than early ones. The message under the Generate button tells you which of the two ran out. If it says the solve budget ran out, ask for a number closer to what the run reached, or use Keep going to N — it keeps what you have and constrains the new lineups to differ from them, which a fresh run cannot do because it has never seen them. Loosening the diversity settings makes each solve slower, not faster. If it says no lineup is left that satisfies every rule, the rules are the limit, not the clock: the message names what to loosen, and a Relax one rule and continue button loosens one setting at a time.
What is the difference between the exposure cap, the cooldown and “Cool off top-used players”?
Max player exposure caps the share of your lineups any one player can be in, and only bites when he hits the cap. Player cooldown (last K) makes a player used in the last K lineups sit out the next one. Cool off top-used players makes the 1, 2 or 3 players used most so far sit out the next lineup, every lineup, so usage spreads out instead of a few players pinning at the cap. If a lineup cannot be built with that many players resting, fewer rest for that lineup.
What happens if I lock a player and also set an exposure cap?
The lock wins. A locked player is in every lineup, so he ignores Max player exposure and the player cooldown (he is always at 100%); those limits still apply to everyone else. Locked players are never chosen by Cool off top-used players. Each lock also cuts diversity, so lock sparingly.
What actually changes between Cash and GPP?
Only the Tier 3 diversity settings and the minimum salary. Cash: min unique players 1, no cooldown, cool-off off, exposure 100%, and a minimum salary of 95% of the cap. GPP: min unique players 3, cool off the top 3 players, exposure 100%, and no minimum salary. Neither preset touches group lock, star duels, team or game limits, or Vegas scaling, and everything stays editable afterward.

Who built this

I'm Mario — an operations research analyst with 20+ years in optimization and supply chain (Cargill, Cessna Aircraft, Textron Aviation). Daily fantasy lineup building is a knapsack problem in a costume: the same constrained-optimization math I used for scheduling and routing, just with a salary cap instead of a truck. This NBA DFS tool runs a real MILP solver (PuLP/CBC) end to end, not a heuristic or a spreadsheet formula. More about me and the other free tools →