user3861: What are the average number of moves per game with regards to what opening has been played?

user3872: I've heard that in high level games the average move count is about 40. It is important to note that there are some quick draws and resignations, thus if a game was played to checkmate, the move count would be higher than 40. I would expect that closed games last longer than open games. 

user3890: If you consider the ChessGames.com database, whose statistics are posted on http://www.chessgames.com/chessstats.html, that would be around 40 moves. I do not posses the program, but on ChessBase you may use any Mega Database, as pointed out on the thread What is the average length of a game of chess?, check it yourself: you can introduce the first moves of the opening you desire and look up the "median move value".

user3891: I wrote a simple PHP script which parses ELO codes and the corresponding number of moves from chess games in PGN files. This script will output the ELO code and number of moves into a CSV file. The averages can then easily be evaluated in Excel for example.
I ran my script on a PGN file with about 6000 games which I downloaded from The Week in Chess. You can view the result here:

Full size
If you want to evaluate millions of games, to get better averages, I suggest you use Pig script or some other scripting languages which can easily handle big chunks of data.

user3895: It's not about opening, it's about level of players in game. Beginner vs beginner game tends to have more moves on average, because they do not surrender easily. One forces second to mate him with his rook or something and it lasts forever. Games of serious players are mostly drawish, so let's say 20-40 moves on average. Of course, there are so many exceptions, long endgames etc, but they are rarely met in comparision to "fast" draws. It is really hard to give you exact answer on this. Try to ask more precisevely so we might figure out something

user8778: Chessbase already performs this function in "Opening Report" feature. Telling avg # of moves of the games occurring in the database. 

3861: <p>What are the average number of moves per game with regards to what opening has been played?</p>
 3872: <p>I've heard that in high level games the average move count is about 40. It is important to note that there are some quick draws and resignations, thus if a game was played to checkmate, the move count would be higher than 40. I would expect that closed games last longer than open games. </p>
 3890: <p>If you consider the ChessGames.com database, whose statistics are posted on <a href="http://www.chessgames.com/chessstats.html" rel="nofollow noreferrer">http://www.chessgames.com/chessstats.html</a>, that would be around 40 moves. I do not posses the program, but on ChessBase you may use any Mega Database, as pointed out on the thread <a href="https://chess.stackexchange.com/questions/2506/what-is-the-average-length-of-a-game-of-chess">What is the average length of a game of chess?</a>, check it yourself: you can introduce the first moves of the opening you desire and look up the "median move value".</p>
 3891: <p>I wrote a simple PHP script which parses ELO codes and the corresponding number of moves from chess games in PGN files. This script will output the ELO code and number of moves into a CSV file. The averages can then easily be evaluated in Excel for example.</p>

<p>I ran my script on a PGN file with about 6000 games which I downloaded from <a href="http://www.theweekinchess.com/twic" rel="nofollow noreferrer">The Week in Chess</a>. You can view the result here:</p>

<p><img src="https://i.stack.imgur.com/hOFWx.png" alt="Average # of moves per ECO"></p>

<p><a href="https://i.stack.imgur.com/hOFWx.png" rel="nofollow noreferrer">Full size</a></p>

<p>If you want to evaluate millions of games, to get better averages, I suggest you use Pig script or some other scripting languages which can easily handle big chunks of data.</p>
 3895: <p>It's not about opening, it's about level of players in game. Beginner vs beginner game tends to have more moves on average, because they do not surrender easily. One forces second to mate him with his rook or something and it lasts forever. Games of serious players are mostly drawish, so let's say 20-40 moves on average. Of course, there are so many exceptions, long endgames etc, but they are rarely met in comparision to "fast" draws. It is really hard to give you exact answer on this. Try to ask more precisevely so we might figure out something</p>
 8778: <p>Chessbase already performs this function in "Opening Report" feature. Telling avg # of moves of the games occurring in the database. </p>
