Let P be a finite poset, K a field, and O(P ) (resp. C (P )) the order (resp. chain) polytope of P . We study the non-Gorenstein locus of E K [O(P )] (resp. E K [C (P )]), the Ehrhart ring of O(P ) (resp. C (P )) over K, which are each normal toric rings associated P . In particular, we show that the dimension of non-Gorenstein loci of E K [O(P )] and E K [C (P )] are the same. Further, we show that E K [C (P )] is nearly Gorenstein if and only if P is the disjoint union of pure posets P 1 , . . . , P s with |rankP i − rankP j | ≤ 1 for any i and j.