Method for decoding a codeword with a low-density parity-check code, called LDPC code, said LDPC code being defined by a binary parity matrix (H) having the size M x N, M and N being positive integers, the parity matrix (H) corresponding to a representation of a bipartite graph (G) comprising connections between M parity check nodes CN m and N variable nodes VN n , each line of the parity matrix (H) corresponding to a parity equation associated with a parity check node CN m , each column of the parity matrix (H) corresponding to a variable associated with a variable node VN n , each non-zero element of the parity matrix (H) corresponding to a connection between a parity check node CN m and a variable node VN n , the codeword to be decoded corresponding to a set of values respectively taken by said variables, the method comprising the execution of one or more iterations until a stop criterion is met, each iteration comprising: - a calculation of variable messages α n,m , for the various variable nodes VN n , on the basis of parity check messages β m,n , - a calculation of parity check messages β m,n , for the various parity check nodes CN m , on the basis of the variable messages α n,m , - a calculation of a posteriori estimation variables on the basis of the parity check messages β m,n , for each parity check node CN m and for each variable node VN n to which said parity check node CN m is connected, the calculation of a parity check message β m,n comprises: - a determination of a first smallest value among the absolute values of the variable messages associated with said parity check node CN m , - a determination of a second smallest value among the absolute values of the variable messages associated with said parity check node CN m , - at least one first comparison of the difference between the second smallest value and the first smallest value to a first threshold, - a determination of a correction value out of at least two possible values according to a result of the first comparison, - a calculation of the parity check message β m,n according to the first smallest value and the correction value, characterized in that the decoder supports various code rates and the possible values for the correction value are defined according to the code rate used. - a calculation of variable messages α n,m , for the various variable nodes VN n , on the basis of parity check messages β m,n , - a calculation of parity check messages β m,n , for the various parity check nodes CN m , on the basis of the variable messages α n,m , - a calculation of a posteriori estimation variables on the basis of the parity check messages β m,n , for each parity check node CN m and for each variable node VN n to which said parity check node CN m is connected, the calculation of a parity check message β m,n comprises: - a determination of a first smallest value among the absolute values of the variable messages associated with said parity check node CN m , - a determination of a second smallest value among the absolute values of the variable messages associated with said parity check node CN m , - at least one first comparison of the difference between the second smallest value and the first smallest value to a first threshold, - a determination of a correction value out of at least two possible values according to a result of the first comparison, - a calculation of the parity check message β m,n according to the first smallest value and the correction value, <EOS>