Retirement tax questions

my securities gains are not a loss.  i have 10k of gains and 3k of expenses.  i would like to pay tax on 7k.  but if i record the gains on schedule D and the expenses on schedule C, i end up paying taxes on 10k of gains since the 3k of losses do not get applied against the gains.  that is my issue.