Answers.Body: <p>Briefly, the main purpose of castling is to <strong>avoid</strong> attack.</p>
  
  <p>So you should castle on the side where your opponent has fewest chances of attack (all other things being equal). In a few cases, that may even mean leaving the king in the center.</p>
  
  <p>Some players adopt a strategy of letting their opponents start an attack on one side, "waste" moves there, and then castling on the <strong>other</strong> side.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-18T17:24:21.617Z
Answers.LastActivityDate: 2014-06-18T17:24:21.617Z
Answers.UserDisplayName: Tom Au
Answers.Body: <p>Castling serves 2 main purposes -</p>
  
  <ol>
  <li>Move the king to a safer place by taking it away from the center</li>
  <li>bring the rook to a more active position.</li>
  </ol>
  
  <p>Apart from this, one should also take note of -</p>
  
  <ol>
  <li>how compromised are your pawn structures</li>
  <li>developed the opponent's pieces are (queen side/ king side) and also </li>
  <li>if the opponent has already castled then what side did they castle.</li>
  </ol>
  
  <p>a much more thorough list of suggestions can be read at - <a href="http://chess.about.com/od/improveyourchess/qt/When-And-Where-To-Castle.htm" rel="nofollow">http://chess.about.com/od/improveyourchess/qt/When-And-Where-To-Castle.htm</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-18T10:00:19.817Z
Answers.LastActivityDate: 2014-06-18T10:00:19.817Z
Answers.UserDisplayName: NoviceProgrammer
Answers.Body: <p>A simple rule of thumb is that it's generally better to castle to the side of the board that has fewer enemy pieces as it will generally be safer long-term. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-18T23:02:26.533Z
Answers.LastActivityDate: 2014-06-18T23:02:26.533Z
Answers.UserDisplayName: Elliot Gorokhovsky
Answers.Body: <blockquote>
    <p>can somebody explain what are the factors should be considered if we have opportunity to castle on both sides?</p>
  </blockquote>
  
  <p><strong>1. The most important factor is king safety;</strong></p>
  
  <p>Long castle is less safe than short one, because king is closer to the center, thus can be attacked faster. You will lose a tempo to properly secure the king with <code>Kb1/Kb8</code> ( thus protecting the loose <code>a-pawn</code> as well ). In many openings <code>c-file</code> is open/semi open which heightens the danger for the king.</p>
  
  <p>Short castling moves the king far away and there are no loose pawns to protect. Furthermore, opponent must <strong>invest considerable amount of time</strong> to organize the attack by moving his forces to the kingside. This means that he must abandon some squares/pawn protection which enables you to organize strong counterplay.</p>
  
  <p><strong>2. King's activity in an endgame;</strong></p>
  
  <p>Long castle is preferred as your king will be close to the center. This fact can constitute a big advantage in endgame as king now becomes very powerful.</p>
  
  <p><strong>3. How fast do you need to develop pieces/launch an attack?</strong></p>
  
  <p>You need 2 moves to castle short ( you must move <code>f1</code> bishop and <code>g1</code> knight and you are done ), while you need 3 for long castle ( you need to move the queen, <code>c1</code> bishop and <code>b1</code> knight ). In opening speed is very important, therefore super GMs prefer short castle.</p>
  
  <p>On the other hand, when castling long, rook lands immediately to <code>d1</code> which is <strong>the best square for him</strong>, while with short castle <strong>you need to spend extra tempo</strong> to centralize rook with <code>Re1</code>.</p>
  
  <p>When choosing where to castle, you should also ask yourself where do you lead the attack. If you play in the center <strong>and you plan a fast attack</strong>, prefer long castle. If you do not know what will you do at the moment than short castle is more flexible.</p>
  
  <h2>PRACTICAL GUIDELINES FOR APPLYING THE ABOVE:</h2>
  
  <p>First you need to form a general plan based on the factors listed above <strong>and personal preferences:</strong></p>
  
  <ol>
  <li>Will you attack or play positionally?</li>
  <li>Are you willing to play the endgame or you are going for mate?</li>
  <li>On which side of the board are you stronger, regarding your piece placement?</li>
  <li>How well are you placed to attack on kingside/queenside?</li>
  <li>Is your pawn structure healthy, on the side where you want to castle?</li>
  <li>What is the state of center of the board -> is it closed/open/semi-open?</li>
  </ol>
  
  <p><strong>If you have opportunity to castle both sides than first look at your pawn structure.</strong> Is it healthy ( pawns are at starting positions ) or you have doubled pawns/pawn islands/"holes"? You should prefer the side that has healthy pawn structure. </p>
  
  <p>Once you answer this question ask yourself the following: <strong>How well are my pieces placed to defend my king from opposing forces?</strong> If you have enough defenders, then go for that side.</p>
  
  <p><em>This was the easy case, you have healthy pawn structure and solid defense <strong>on one side</strong> of the board, but what if you are good on both sides? What if your pawn structure and piece placement is good on both wings?</em></p>
  
  <p><strong>Then you must take endgame into consideration!</strong> If you can force a lot of exchanges go for the long castle ( even better if opponent went short castle! ). If the game will last long, and will be sharp or simply there are no signs for lots of exchanges, <strong>then you need to take attacking potential into consideration.</strong> Maybe you could go for "opposite side castling" because you will get promising pawn storm, or you could go for quiet game by castling to the same side as the opponent since you plan to attack in the center? <strong>This is really position-dependent part.</strong></p>
  
  <h2>PRACTICAL EXAMPLES THAT ILLUSTRATE THE ABOVE:</h2>
  
  <p>Let us take a look at the following position and apply the above principles:</p>
  
  <pre><code>[Title "Where to castle?"]
  [fen "r1bqr1k1/pp1nbppp/2p2n2/3p2B1/3P4/2NBPN2/PPQ2PPP/R3K2R w KQ - 0 1"]
  </code></pre>
  
  <p>First factor, king safety: we see that White is safer on kingside, and if he castles there he has good prospects for minority attack on the queenside, and for "f4 push" on the kingside ( please see my answer to <a href="https://chess.stackexchange.com/questions/5392/what-are-blacks-possible-plans-in-the-exchange-variation-of-the-queens-gambit/5396#5396">this question</a> for detailed coverage of these plans if you need further explanations ). The later option is beneficial for positional players.</p>
  
  <p>Second factor, the activity of the king in the endgame, is bad for White since his king is further from the center then it would be after long castle. But if he wishes to play for minority attack he need both rooks on quenside, and in those positions the endgame will not appear for a long time.</p>
  
  <p>Third factor, speed, is in favor of short castling, since White can generate minority attack or "f4 push" faster than the kingside pawn storm ( again see my answer to the question I linked above, if you need concrete explanations/examples ).</p>
  
  <p>Since a positional player will always keep his options open and his king safe, castling short would be a good option, and is played most of the time at top level.</p>
  
  <p>OK, this all sounds great but what about long castle? What about players who like sharp play?</p>
  
  <p>White has healthy pawn structure at queenside, queen + bishop battery is directed on kingside, and <code>Bg5</code> + <code>Nf3</code> are aggressively positioned. White also has space advantage and better development, <strong>but Black can open <code>c-file</code> with <code>...c5</code></strong> at some point. Therefore, based on the first factor, this should scare White a little. </p>
  
  <p>But notice that I stated that we must take opponents attacking chances as well. Black will lose a lot of time to prepare an attack, and even then White can just play <code>Kb1</code> and simply use rook on <code>d1</code> to pressure the <code>d5</code> pawn after the <code>dxc5</code> exchange. The point is that long castle <strong>speeds up White's development thus strengthening his development advantage and central pressure</strong> according to the third factor. </p>
  
  <p>This is the reason some GMs took the risk to castle queenside, <strong>claiming that Black is misplaced for queenside counter-attack so they counted that they will be faster on the kingside</strong> ( again, third factor is more important here then king safety ) which proved to be true. Therefore Black had to enter an endgame to keep equal chances ( again, see my answer I linked before ), but the second factor I mentioned helped White to still keep small pressure ( king is closer to the center and rook controls <code>d-file</code>, these are all important things in an endgame ). </p>
  
  <p>I could give you another example in Caro-Kann, but I have "ran out of steam" :(</p>
  
  <p>The point is to do the same as I did in the above practical example:</p>
  
  <ol>
  <li>Evaluate kings safety ( your pawn structure, piece placement, opponents attacking chances on that side of the board... );</li>
  <li>See how castling long/short <strong>fits into your overall plan</strong> ( is there a high probability for an endgame to arise or do you need sharp position and so on... );</li>
  <li>How fast do you really need to mobilize your forces ( do you need fast action <strong>in the center</strong> or can this wait; can you afford slightly exposed king to get sharp position with "opposite side castling" and so on.. );</li>
  </ol>
  
  <p>If you need further help leave a comment. Best regards.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-27T14:51:26.353Z
Answers.Text: This may be irrelevant.But i just want to know about how to include particular position(FEN) and series of moves (PGN) [in this site](http://chess.stackexchange.com/) can you explain it please??
Answers.UserDisplayName: ManirajSS
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-27T19:44:30.323Z
Answers.Text: @NullReference: No problem at all, take a look [here](http://meta.chess.stackexchange.com/questions/279/tool-used-to-create-chess-analysis-interactive-diagrams-in-many-chess-stack-exch/280#280) for instructions. If you need further help leave another comment and I will help. Thank you for officially accepting my answer, I hope it was useful ( if I need to update it to further help you, just say so, it is not a problem ). Best regards.
Answers.UserDisplayName: AlwaysLearningNewStuff
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-27T00:48:53.850Z
Answers.LastActivityDate: 2014-06-28T12:36:42.803Z
Answers.LastEditDate: 2017-04-13T12:48:53.193Z
Answers.UserDisplayName: AlwaysLearningNewStuff
Body: <p>It's a little bit confusing for me to make good decisions when I have opportunity to castle on both sides.</p>
  
  <p>Can somebody explain <strong>what are the factors should be considered</strong> if we have opportunity to castle on both sides?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-18T13:28:35.777Z
Comments.Text: Without the **actual position** this question is too broad to explain, and **will be primarily opinion based.** You need to add more info for us to be able to help you.
Comments.UserDisplayName: AlwaysLearningNewStuff
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-18T17:01:23.260Z
Comments.Text: I agree with @AlwaysLearningNewStuff. This is quite broad. There are too many special cases when one may prefer castling one way than the other and there are positions where one could castle either way depending upon the style of the player. So it's not always the case that there is a side where you "should" castle. Sometimes these decisions are stylistic in nature.
Comments.UserDisplayName: NM Wesley Falcao
Tags: <opening><strategy><positional-play><castling>
Title: Which side should I castle if I have opportunity to castle on both sides?
ThreadText: # Which side should I castle if I have opportunity to castle on both sides?
  
  (Asked by: username_0 on 2014-06-18)
  
  It's a little bit confusing for me to make good decisions when I have opportunity to castle on both sides.
  
  Can somebody explain **what are the factors should be considered** if we have opportunity to castle on both sides?
  
  **Tags:** opening, strategy, positional-play, castling
  
  > **Comments:**
  > **username_1**: Without the **actual position** this question is too broad to explain, and **will be primarily opinion based.** You need to add more info for us to be able to help you.  
  > **username_2**: I agree with @username_1. This is quite broad. There are too many special cases when one may prefer castling one way than the other and there are positions where one could castle either way depending upon the style of the player. So it's not always the case that there is a side where you "should" castle. Sometimes these decisions are stylistic in nature.  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2014-06-27. Score: 11 | Accepted answer
  
  can somebody explain what are the factors should be considered if we have opportunity to castle on both sides?
  
  1. The most important factor is king safety;
  Long castle is less safe than short one, because king is closer to the center, thus can be attacked faster. You will lose a tempo to properly secure the king with Kb1/Kb8 ( thus protecting the loose a-pawn as well ). In many openings c-file is open/semi open which heightens the danger for the king.
  Short castling moves the king far away and there are no loose pawns to protect. Furthermore, opponent must invest considerable amount of time to organize the attack by moving his forces to the kingside. This means that he must abandon some squares/pawn protection which enables you to organize strong counterplay.
  2. King's activity in an endgame;
  Long castle is preferred as your king will be close to the center. This fact can constitute a big advantage in endgame as king now becomes very powerful.
  3. How fast do you need to develop pieces/launch an attack?
  You need 2 moves to castle short ( you must move f1 bishop and g1 knight and you are done ), while you need 3 for long castle ( you need to move the queen, c1 bishop and b1 knight ). In opening speed is very important, therefore super GMs prefer short castle.
  On the other hand, when castling long, rook lands immediately to d1 which is the best square for him, while with short castle you need to spend extra tempo to centralize rook with Re1.
  When choosing where to castle, you should also ask yourself where do you lead the attack. If you play in the center and you plan a fast attack, prefer long castle. If you do not know what will you do at the moment than short castle is more flexible.
  PRACTICAL GUIDELINES FOR APPLYING THE ABOVE:
  First you need to form a general plan based on the factors listed above and personal preferences:
  
  Will you attack or play positionally?
  Are you willing to play the endgame or you are going for mate?
  On which side of the board are you stronger, regarding your piece placement?
  How well are you placed to attack on kingside/queenside?
  Is your pawn structure healthy, on the side where you want to castle?
  What is the state of center of the board -> is it closed/open/semi-open?
  
  If you have opportunity to castle both sides than first look at your pawn structure. Is it healthy ( pawns are at starting positions ) or you have doubled pawns/pawn islands/"holes"? You should prefer the side that has healthy pawn structure. 
  Once you answer this question ask yourself the following: How well are my pieces placed to defend my king from opposing forces? If you have enough defenders, then go for that side.
  This was the easy case, you have healthy pawn structure and solid defense on one side of the board, but what if you are good on both sides? What if your pawn structure and piece placement is good on both wings?
  Then you must take endgame into consideration! If you can force a lot of exchanges go for the long castle ( even better if opponent went short castle! ). If the game will last long, and will be sharp or simply there are no signs for lots of exchanges, then you need to take attacking potential into consideration. Maybe you could go for "opposite side castling" because you will get promising pawn storm, or you could go for quiet game by castling to the same side as the opponent since you plan to attack in the center? This is really position-dependent part.
  PRACTICAL EXAMPLES THAT ILLUSTRATE THE ABOVE:
  Let us take a look at the following position and apply the above principles:
  [Title "Where to castle?"]
  [fen "r1bqr1k1/pp1nbppp/2p2n2/3p2B1/3P4/2NBPN2/PPQ2PPP/R3K2R w KQ - 0 1"]
  
  First factor, king safety: we see that White is safer on kingside, and if he castles there he has good prospects for minority attack on the queenside, and for "f4 push" on the kingside ( please see my answer to this question for detailed coverage of these plans if you need further explanations ). The later option is beneficial for positional players.
  Second factor, the activity of the king in the endgame, is bad for White since his king is further from the center then it would be after long castle. But if he wishes to play for minority attack he need both rooks on quenside, and in those positions the endgame will not appear for a long time.
  Third factor, speed, is in favor of short castling, since White can generate minority attack or "f4 push" faster than the kingside pawn storm ( again see my answer to the question I linked above, if you need concrete explanations/examples ).
  Since a positional player will always keep his options open and his king safe, castling short would be a good option, and is played most of the time at top level.
  OK, this all sounds great but what about long castle? What about players who like sharp play?
  White has healthy pawn structure at queenside, queen + bishop battery is directed on kingside, and Bg5 + Nf3 are aggressively positioned. White also has space advantage and better development, but Black can open c-file with ...c5 at some point. Therefore, based on the first factor, this should scare White a little. 
  But notice that I stated that we must take opponents attacking chances as well. Black will lose a lot of time to prepare an attack, and even then White can just play Kb1 and simply use rook on d1 to pressure the d5 pawn after the dxc5 exchange. The point is that long castle speeds up White's development thus strengthening his development advantage and central pressure according to the third factor. 
  This is the reason some GMs took the risk to castle queenside, claiming that Black is misplaced for queenside counter-attack so they counted that they will be faster on the kingside ( again, third factor is more important here then king safety ) which proved to be true. Therefore Black had to enter an endgame to keep equal chances ( again, see my answer I linked before ), but the second factor I mentioned helped White to still keep small pressure ( king is closer to the center and rook controls d-file, these are all important things in an endgame ). 
  I could give you another example in Caro-Kann, but I have "ran out of steam" :(
  The point is to do the same as I did in the above practical example:
  
  Evaluate kings safety ( your pawn structure, piece placement, opponents attacking chances on that side of the board... );
  See how castling long/short fits into your overall plan ( is there a high probability for an endgame to arise or do you need sharp position and so on... );
  How fast do you really need to mobilize your forces ( do you need fast action in the center or can this wait; can you afford slightly exposed king to get sharp position with "opposite side castling" and so on.. );
  
  If you need further help leave a comment. Best regards.
  
  > **Comments:**
  > **username_0**: This may be irrelevant.But i just want to know about how to include particular position(FEN) and series of moves (PGN) [in this site](http://chess.stackexchange.com/) can you explain it please??  
  > **username_1**: @NullReference: No problem at all, take a look [here](http://meta.chess.stackexchange.com/questions/279/tool-used-to-create-chess-analysis-interactive-diagrams-in-many-chess-stack-exch/280#280) for instructions. If you need further help leave another comment and I will help. Thank you for officially accepting my answer, I hope it was useful ( if I need to update it to further help you, just say so, it is not a problem ). Best regards.  
  
  ---
  
  ### Answer by username_3 on 2014-06-18. Score: 5
  
  Briefly, the main purpose of castling is to **avoid** attack.
  
  So you should castle on the side where your opponent has fewest chances of attack (all other things being equal). In a few cases, that may even mean leaving the king in the center.
  
  Some players adopt a strategy of letting their opponents start an attack on one side, "waste" moves there, and then castling on the **other** side.
  
  
  ---
  
  ### Answer by username_4 on 2014-06-18. Score: 4
  
  Castling serves 2 main purposes -
  
  1. Move the king to a safer place by taking it away from the center
  2. bring the rook to a more active position.
  
  Apart from this, one should also take note of -
  
  1. how compromised are your pawn structures
  2. developed the opponent's pieces are (queen side/ king side) and also
  3. if the opponent has already castled then what side did they castle.
  
  a much more thorough list of suggestions can be read at - <http://chess.about.com/od/improveyourchess/qt/When-And-Where-To-Castle.htm>
  
  
  ---
  
  ### Answer by username_5 on 2014-06-18. Score: 4
  
  A simple rule of thumb is that it's generally better to castle to the side of the board that has fewer enemy pieces as it will generally be safer long-term.
  
  
  ---
  
  