The invention aims at providing a method for analyzing crosstalk of transmission lines in any layout, and the transmission lines are not parallel and are crossed. The method specifically comprises the following steps that firstly, the type of transmission line layout is judged, if the transmission lines are not parallel, a third step is executed, and if the transmission lines are crossed, a second step is executed; secondly, a coupled region and an uncoupled region of the crossed transmission lines are judged, if it is judged as the coupled region, the third step is executed, and if it is judged as the uncoupled region, cross coupling influences are not taken into consideration; thirdly, nodes are introduced to connecting points of dispersing segments and are named as ideal nodes, and scattering parameters of all the nodes and transmission functions of all the dispersing segments are solved; fourthly, the results obtained in the third step are substituted into a BLT equation, voltages of all the nodes can be obtained, and then the crosstalk among the lines is obtained.