HELLO Let me just say that if you have no experience in composition, you’ve got a long way to go before you can compose a proper fugue. I get the impression you must have some knowledge of counterpoint. But before you start composing fugues, you need to master other, less demanding areas of strict counterpoint. It’s simply not possible to come up with a logically structured composition just by studying two of Bach’s fugues and leaving it at that. What you’ve written doesn’t sound bad, but, in my opinion, there’s a point (which I think is the one mentioned by @Lithl ) where everything falls apart quite a bit, and that’s in bar 6. Because you’re forming a D#–A tritone which, although the intention is for some of these to be passing notes, I think that should resolve into a Bb chord. Enharmonically, you have Eb–A, a tritone which, in this context, must resolve in this way. The solution you’ve suggested for another context is fine, but here, at least for me, it ruins the whole thing.